How schema generation works

Two actions cause the JSON schema to generate or regenerate it’s output.

This charts the flow through the schema logic.

Figure 25.   Generate actions
Image

Binding ords resolve against the current base item of the schema. Unless you are using a relative JSON schema, this is the station that uses the current result of the base query. Currently, base queries resolve against the station.

Figure 26.   Regular JSON schema with absolute ord bindings that resolve against the station
Image

Relative JSON schema with relative ord bindings resolve against the current base item. This process repeats until there are no more base items, and results in several output strings.

Figure 27.   Relative JSON schema with relative ord bindings that resolve against the current base item
Image

External access to schema output

A URL like the following also allows access to the schema output via the JsonExporter:

http://127.0.0.1/ord/station:%7Cslot:/JsonSchema%7Cview:jsonToolkit:JsonExporter

This could allow access to an external application consuming data from Niagara.