# JSON schema The JSON schema defines the nested structure of a QECX file: required and optional keys (also called fields), the type and accepted set of values for each key, etc., in accordance with the format specification. This page should be used as a reference when unsure which keys and values to use. The more complex cross-field rules that a schema cannot express are only defined in the [format specification](format_specification.md). :::{note} Download the raw schema: {download}`qecx_v0.1.schema.json <../src/qecx/validation/schema/qecx_v0.1.schema.json>`. ::: % The schema document is distributed with the package; its own title is skipped in favour of this page's. ```{include} ../src/qecx/validation/schema/qecx_v0.1.schema.md :start-line: 1 ```