jx/internal/folio/schemas/declaration.schema.json

33 lines
663 B
JSON
Raw Normal View History

2024-08-18 01:19:56 +00:00
{
"$id": "foo-declaration.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "foo-declaration",
"type": "object",
"required": [ "type", "attributes" ],
"properties": {
"type": {
"type": "string",
"description": "Resource type name.",
"enum": [ "foo" ]
},
"config": {
"type": "string",
"description": "Config name"
},
2024-09-19 07:57:26 +00:00
"onerror": {
"type": "string",
"description": "error handling strategy",
"enum": [
"stop",
"fail",
"skip"
]
},
2024-08-18 01:19:56 +00:00
"attributes": {
"oneOf": [
{ "$ref": "bar.schema.json" }
]
}
}
}