Fix schema type

This commit is contained in:
Aarni Halinen
2022-07-28 22:13:01 +03:00
parent 0a899f5600
commit 490b99a848
+30 -4
View File
@@ -110,10 +110,36 @@
"options": {
"properties": {
"enum": {
"items": {
"type": "string"
},
"type": "array"
"anyOf": [
{
"maxItems": 0,
"minItems": 0,
"type": "array"
},
{
"items": [
{
"type": "number"
}
],
"maxItems": 1,
"minItems": 1,
"type": "array"
},
{
"items": [
{
"type": "number"
},
{
"type": "number"
}
],
"maxItems": 2,
"minItems": 2,
"type": "array"
}
]
}
},
"type": "object"