ajv-cli
Version:
Command line interface for Ajv JSON schema validator
18 lines (17 loc) • 337 B
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "schema_with_data.json",
"description": "schema to test $data references",
"type": "object",
"properties": {
"larger": {
"type": "number",
"minimum": {
"$data": "1/smaller"
}
},
"smaller": {
"type": "number"
}
}
}