Files
minecraft-bedrock-json-schemas/.vscode/schema-validation.json
2021-06-08 18:26:40 +02:00

56 lines
1.5 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema",
"definitions": {
"object_check": {
"type": "object",
"dependencies": {
"additionalProperties": ["type"],
"items": ["type"],
"properties": ["type"]
},
"additionalProperties": {
"anyOf": [
{
"type": "object",
"properties": {
"properties": { "additionalProperties": { "$ref": "#/definitions/object_check" } },
"additionalProperties": { "additionalProperties": { "$ref": "#/definitions/object_check" } }
}
},
{ "type": "array", "$ref": "#/definitions/array_check" },
{ "type": "string" },
{ "type": "boolean" },
{ "type": "number" },
{ "type": "integer" }
]
},
"properties": {
"title": {
"type": "string",
"pattern": "^([A-Z0-9][a-z0-9\\.]*(| ))*$"
}
}
},
"array_check": {
"items": {
"anyOf": [
{ "type": "object", "$ref": "#/definitions/object_check" },
{ "type": "array", "$ref": "#/definitions/array_check" },
{ "type": "string" },
{ "type": "boolean" },
{ "type": "number" },
{ "type": "integer" }
]
}
}
},
"anyOf": [
{ "type": "object", "$ref": "#/definitions/object_check" },
{ "type": "array", "$ref": "#/definitions/array_check" },
{ "type": "string" },
{ "type": "boolean" },
{ "type": "number" },
{ "type": "integer" }
]
}