schema fieldArray
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sebastian Frank 2022-08-16 10:24:45 +02:00
parent d0773b5ceb
commit 7743cebae3
3 changed files with 53 additions and 25 deletions

View File

@ -173,34 +173,44 @@
]
},
"fields": {
"type": "array",
"description": "fields of collection",
"items": {
"oneOf": [
{
"$comment": "for include tag",
"type": "string"
},
{
"$ref": "field.json"
"oneOf": [
{ "$comment": "for include tag", "type": "string" },
{
"type": "array",
"description": "fields of collection",
"items": {
"oneOf": [
{
"$comment": "for include tag",
"type": "string"
},
{
"$ref": "field.json"
}
]
}
]
}
}
]
},
"indexes": {
"type": "array",
"description": "indexes of collection",
"items": {
"oneOf": [
{
"$comment": "for include tag",
"type": "string"
},
{
"$ref": "index.json"
"oneOf": [
{ "$comment": "for include tag", "type": "string" },
{
"type": "array",
"description": "indexes of collection",
"items": {
"oneOf": [
{
"$comment": "for include tag",
"type": "string"
},
{
"$ref": "index.json"
}
]
}
]
}
}
]
}
},
"required": ["name", "permissions"]

View File

@ -66,7 +66,8 @@
"selectArray",
"date",
"file",
"image"
"image",
"jsonField"
]
},
"choices": {

View File

@ -0,0 +1,17 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "JSON Schema tibi-server field array configuration",
"description": "tibi-server collection linter",
"type": "array",
"items": {
"oneOf": [
{
"$comment": "for include tag",
"type": "string"
},
{
"$ref": "field.json"
}
]
}
}