Sebastian Frank
5fccea7513
All checks were successful
continuous-integration/drone/push Build is passing
144 lines
5.8 KiB
JSON
144 lines
5.8 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "JSON Schema tibi-server collection meta navigation configuration",
|
|
"description": "tibi-server collection navigation linter",
|
|
"type": "object",
|
|
"additionalProperties": true,
|
|
"patternProperties": {
|
|
"^x\\-": {
|
|
"description": "template property"
|
|
}
|
|
},
|
|
"required": ["label"],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"description": "name of navigation"
|
|
},
|
|
"label": {
|
|
"$ref": "field.json#/definitions/i18nString"
|
|
},
|
|
"muiIcon": {
|
|
"type": "string",
|
|
"description": "material ui icon name"
|
|
},
|
|
"defaultSort": {
|
|
"type": "object",
|
|
"description": "default sort in admin ui lists",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"field": {
|
|
"$ref": "field.json#/definitions/fieldSource"
|
|
},
|
|
"order": {
|
|
"description": "sort order",
|
|
"enum": ["ASC", "DESC"]
|
|
}
|
|
}
|
|
},
|
|
"filter": {
|
|
"type": "object",
|
|
"description": "filter for prefiltering collection view"
|
|
},
|
|
"views": {
|
|
"type": "array",
|
|
"description": "list views",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"mediaQuery": {
|
|
"type": "string",
|
|
"description": "css media query to select this view in ui"
|
|
}
|
|
},
|
|
"oneOf": [
|
|
{
|
|
"properties": {
|
|
"type": {
|
|
"const": "simpleList"
|
|
},
|
|
"primaryText": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "field.json#/definitions/fieldSource"
|
|
},
|
|
{
|
|
"$ref": "field.json#/definitions/evalExpressions"
|
|
}
|
|
]
|
|
},
|
|
"secondaryText": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "field.json#/definitions/fieldSource"
|
|
},
|
|
{
|
|
"$ref": "field.json#/definitions/evalExpressions"
|
|
}
|
|
]
|
|
},
|
|
"tertiaryText": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "field.json#/definitions/fieldSource"
|
|
},
|
|
{
|
|
"$ref": "field.json#/definitions/evalExpressions"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": ["type", "primaryText"]
|
|
},
|
|
{
|
|
"properties": {
|
|
"type": {
|
|
"const": "table"
|
|
},
|
|
"columns": {
|
|
"type": "array",
|
|
"items": {
|
|
"oneOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"$ref": "field.json#/definitions/fieldSource"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"$ref": "field.json#/definitions/i18nString"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"allOf": [
|
|
{
|
|
"$ref": "field.json#/definitions/evalExpressions"
|
|
},
|
|
{
|
|
"properties": {
|
|
"label": {
|
|
"$ref": "field.json#/definitions/i18nString"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"required": ["type", "columns"]
|
|
}
|
|
],
|
|
"required": ["type"]
|
|
}
|
|
}
|
|
}
|
|
}
|