jx/internal/folio/schemas/declaration.schema.json
Matthew Rich 6e0049c4d2
Some checks are pending
Lint / golangci-lint (push) Waiting to run
Declarative Tests / test (push) Waiting to run
Declarative Tests / build-fedora (push) Waiting to run
Declarative Tests / build-ubuntu-focal (push) Waiting to run
add resource and document constraints
2024-09-19 07:57:26 +00:00

33 lines
663 B
JSON

{
"$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"
},
"onerror": {
"type": "string",
"description": "error handling strategy",
"enum": [
"stop",
"fail",
"skip"
]
},
"attributes": {
"oneOf": [
{ "$ref": "bar.schema.json" }
]
}
}
}