tibi-types/schemas/api-config/projections.json

32 lines
1.0 KiB
JSON
Raw Normal View History

2022-02-01 18:59:17 +01:00
{
"$schema": "http://json-schema.org/draft-07/schema#",
2022-02-26 10:43:52 +01:00
"title": "JSON Schema tibi-server imageFilter configuration",
2022-10-12 16:23:32 +02:00
"description": "tibi-server projections linter",
"type": "object",
2022-02-01 18:59:17 +01:00
"patternProperties": {
2022-10-12 16:23:32 +02:00
"^x\\-": {
"description": "template property"
},
"^[a-zA-Z0-9_-]+$": {
2022-02-01 18:59:17 +01:00
"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]
}
}
2022-02-01 18:59:17 +01:00
}
]
2022-02-01 18:59:17 +01:00
}
}
}
}
}