Refactor
This commit is contained in:
29
.vscode/schema-validation.json
vendored
Normal file
29
.vscode/schema-validation.json
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"definitions": {
|
||||
"object_check": {
|
||||
"type": "object",
|
||||
"dependencies": {
|
||||
"type": ["title", "description"]
|
||||
},
|
||||
"additionalProperties": {
|
||||
"anyOf": [
|
||||
{ "type": "object", "$ref": "#/definitions/object_check" },
|
||||
{ "type": "array", "$ref": "#/definitions/array_check" }
|
||||
]
|
||||
}
|
||||
},
|
||||
"array_check": {
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{ "type": "object", "$ref": "#/definitions/object_check" },
|
||||
{ "type": "array", "$ref": "#/definitions/array_check" }
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"anyOf": [
|
||||
{ "type": "object", "$ref": "#/definitions/object_check" },
|
||||
{ "type": "array", "$ref": "#/definitions/array_check" }
|
||||
]
|
||||
}
|
||||
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"json.schemas": [{ "fileMatch": ["source/**/*.json", "source/*.json"], "url": ".vscode/schema-validation.json" }]
|
||||
}
|
||||
Reference in New Issue
Block a user