47 lines
1023 B
JSON
47 lines
1023 B
JSON
{
|
|
"$id": "document.schema.json",
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "document",
|
|
"type": "object",
|
|
"required": [],
|
|
"properties": {
|
|
"source": {
|
|
"type": "string",
|
|
"description": "Document URI"
|
|
},
|
|
"format": {
|
|
"$ref": "codec.schema.json"
|
|
},
|
|
"requires": {
|
|
"$ref": "dependencies.schema.json"
|
|
},
|
|
"imports": {
|
|
"type": "array",
|
|
"description": "List of other documents to import",
|
|
"items": {
|
|
"type": "string",
|
|
"description": "Document URI"
|
|
}
|
|
},
|
|
"configurations": {
|
|
"type": "array",
|
|
"description": "Configurations list",
|
|
"items": {
|
|
"oneOf": [
|
|
{ "$ref": "config/block.schema.json" }
|
|
]
|
|
}
|
|
},
|
|
"resources": {
|
|
"type": "array",
|
|
"description": "Resources list",
|
|
"items": {
|
|
"oneOf": [
|
|
{ "$ref": "foo-declaration.schema.json" },
|
|
{ "$ref": "bar-declaration.schema.json" }
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|