Files
minecraft-bedrock-json-schemas/.vscode/schema-validation.json

51 lines
1.4 KiB
JSON
Raw Normal View History

2021-04-04 13:52:35 +02:00
{
"$schema": "http://json-schema.org/draft-07/schema",
"definitions": {
"object_check": {
"type": "object",
"dependencies": {
2021-06-06 11:37:29 +02:00
"description": ["title"],
"additionalProperties": ["type"],
"items": ["type"],
"properties": ["type"]
2021-04-04 13:52:35 +02:00
},
"additionalProperties": {
"anyOf": [
2021-05-26 01:23:51 +02:00
{
"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" }
2021-04-04 13:52:35 +02:00
]
}
},
"array_check": {
"items": {
"anyOf": [
{ "type": "object", "$ref": "#/definitions/object_check" },
2021-05-26 01:23:51 +02:00
{ "type": "array", "$ref": "#/definitions/array_check" },
{ "type": "string" },
{ "type": "boolean" },
{ "type": "number" },
{ "type": "integer" }
2021-04-04 13:52:35 +02:00
]
}
}
},
"anyOf": [
{ "type": "object", "$ref": "#/definitions/object_check" },
2021-05-26 01:23:51 +02:00
{ "type": "array", "$ref": "#/definitions/array_check" },
{ "type": "string" },
{ "type": "boolean" },
{ "type": "number" },
{ "type": "integer" }
2021-04-04 13:52:35 +02:00
]
}