Skip to main content
A schema is a saved JSON Schema document that describes the shape of one source’s data.

What a schema stores

Every saved schema is active. There is no draft, review, or adoption state: a saved schema can be used by a run as soon as it exists.

How a schema is created

Inference is deterministic: the same sample produces the same schema.

Limits

How runs use a schema

  • JSON sources. At run time each JSON source is validated against its schema. Validation errors are recorded on the run as validation errors; they do not stop the run.
  • CSV sources. CSV sources are not validated against a schema. The schema supplies the field names the run setup picks from.

Schema design

  • Use names that describe the source and record type.
  • Keep field names stable across runs.
  • Represent identifiers as strings unless arithmetic is required.
  • Represent money and quantities consistently.
  • Document fields that are derived or normalized.

Change control

Changing a schema can change future run output. When a schema change affects comparison behavior, record why it changed and which reconciliation runs use the revised schema.
To create a schema in Darpan, see Create a schema.