allow empty projection select in schema
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sebastian Frank 2022-10-12 16:49:01 +02:00
parent 86da315459
commit 6d6b6ebef6

View File

@ -12,13 +12,18 @@
"description": "dataset query projection config",
"properties": {
"select": {
"type": "object",
"description": "mongo db selector",
"patternProperties": {
"^[a-zA-Z0-9_]+(\\.[a-zA-Z0-9]+)*$": {
"enum": [0, 1]
"oneOf": [
{ "type": "null" },
{
"type": "object",
"description": "mongo db selector",
"patternProperties": {
"^[a-zA-Z0-9_]+(\\.[a-zA-Z0-9]+)*$": {
"enum": [0, 1]
}
}
}
}
]
}
}
}