Example
Below is an example JSON Schema to give you a flavor of what JSON Schema looks like:JSON Schema
$schema- the JSON Schema draft versiontype- the data type of a propertyrequired- the property must existproperties- the sub-fields of an objectdefault- the default value of a propertydescription- a human-readable description of a propertyenum- a constrained list of values a property can takeminimum- the minimum value of a propertymaximum- the maximum value of a property
Supported drafts
While JSON Schema has multiple drafts, only Draft 2020-12, the most recent stable draft, is supported. When specifying the$schema keyword in a schema, it must be set to the following value:
If the
$schema keyword is omitted from a schema, the schema is automatically interpreted as Draft 2020-12.File formats
While JSON Schema was originally built for JSON data, it is not exclusive to JSON. JSON Schema may be uploaded to Miru in the following formats:- JSON (
.json) - YAML (
.yaml,.yml)
- JSON (
.json) - YAML (
.yaml,.yml)
YAML support requires Miru Agent v0.7.0 or newer

