Updated
This commit is contained in:
30
.vscode/schema-validation.json
vendored
30
.vscode/schema-validation.json
vendored
@@ -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" }
|
||||
]
|
||||
}
|
||||
|
||||
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user