tibi-types/schemas/api-config/projections.json
Sebastian Frank 6d6b6ebef6
All checks were successful
continuous-integration/drone/push Build is passing
allow empty projection select in schema
2022-10-12 16:49:01 +02:00

32 lines
1.0 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "JSON Schema tibi-server imageFilter configuration",
"description": "tibi-server projections linter",
"type": "object",
"patternProperties": {
"^x\\-": {
"description": "template property"
},
"^[a-zA-Z0-9_-]+$": {
"type": "object",
"description": "dataset query projection config",
"properties": {
"select": {
"oneOf": [
{ "type": "null" },
{
"type": "object",
"description": "mongo db selector",
"patternProperties": {
"^[a-zA-Z0-9_]+(\\.[a-zA-Z0-9]+)*$": {
"enum": [0, 1]
}
}
}
]
}
}
}
}
}