You can:
{ "enum": [123] }
or
{ "const": 123 }
const
is now part of draft-06 of JSON schema specification (it is supported by Ajv and some other validators).
You can:
{ "enum": [123] }
or
{ "const": 123 }
const
is now part of draft-06 of JSON schema specification (it is supported by Ajv and some other validators).