The home of JSON Schema validation right in your browser 🚧 Alpha 🚧 draft-7 only
Valid JSON:
xxxxxxxxxx
{
"$id": "https://example.com/person.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"preandposttasks": {
"title": "Pre and Post tasks",
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"enum": [
"build"
]
},
"properties": {
"build": {
"title": "Build",
"type": "string",
"examples": [
"clean"
]
}
}
}
}
}
}
Valid JSON:
xxxxxxxxxx
{
"preandposttasks": [
{
"build": "foo"
},
{
"invalidPropertyName": "foo"
}
]
}
jsonschema.dev@relequestual Thanks to Sponsors: