This commit is contained in:
DaanV2
2021-05-26 01:23:51 +02:00
parent 7ea35ef9dd
commit a98fbfbaa8
1023 changed files with 95 additions and 1050 deletions

View File

@@ -4,14 +4,22 @@
"object_check": {
"type": "object",
"dependencies": {
"type": ["title"],
"properties": ["type"],
"items": ["type"]
"description": ["title"]
},
"additionalProperties": {
"anyOf": [
{ "type": "object", "$ref": "#/definitions/object_check" },
{ "type": "array", "$ref": "#/definitions/array_check" }
{
"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" }
]
}
},
@@ -19,13 +27,21 @@
"items": {
"anyOf": [
{ "type": "object", "$ref": "#/definitions/object_check" },
{ "type": "array", "$ref": "#/definitions/array_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": "array", "$ref": "#/definitions/array_check" },
{ "type": "string" },
{ "type": "boolean" },
{ "type": "number" },
{ "type": "integer" }
]
}

View File

@@ -1,5 +1,8 @@
{
"json.schemas": [{ "fileMatch": ["source/**/*.json", "source/*.json"], "url": "./.vscode/schema-validation.json" }],
"json.schemas": [
{ "fileMatch": ["source/**/*.json", "source/*.json"], "url": "./.vscode/schema-validation.json" },
{ "fileMatch": ["source/**/*.json", "source/*.json"], "url": "http://json-schema.org/draft-07/schema" }
],
"editor.formatOnSave": true,
"[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },