The home of JSON Schema validation right in your browser 🚧 Alpha 🚧 draft-7 only
Valid JSON:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"allOf": [
{
"properties": {
"type": {
"enum": [
"Real",
"Integer",
"Boolean",
"String"
]
}
},
"required": [
"type",
"default",
"name"
]
},
{
"if": {
"properties": {
"type": {
"const": "String"
}
}
},
"then": {
"patternProperties": {
"^(minimum|maximum|default|value)$": {
"type": [
"string"
]
}
}
}
}
]
}
Valid JSON:
{
"name": "a string one",
"type": "String",
"default": "a string",
"minimum": false
}
should be string.
type at "#/allOf/1/then/patternProperties/%5E(minimum%7Cmaximum%7Cdefault%7Cvalue)%24/type"
Instance location: "/minimum"
should match "then" schema.
if at "#/allOf/1/if"
Instance location: ""
jsonschema.dev@relequestual Thanks to Sponsors: