allow x- properties in schema
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sebastian Frank 2022-10-12 16:23:32 +02:00
parent eb7d7122e9
commit f250ddee2c
10 changed files with 58 additions and 13 deletions

View File

@ -2,19 +2,24 @@ name: mycol
uploadPath: ../media/mycol
meta:
label: { de: mycol, en: mycol }
rowIdentTpl: { twig: "{{ title }}" }
views:
- type: table
columns:
- title
label: { de: mycol, en: mycol }
rowIdentTpl: { twig: "{{ title }}" }
views:
- type: table
columns:
- title
permissions: !include global/test-permissions.yml
projections:
test:
select:
field1: 1
hooks:
get:
return:
type: javascript
file: hooks/mycol/get_return.js
get:
return:
type: javascript
file: hooks/mycol/get_return.js
x-additional: test

View File

@ -4,6 +4,11 @@
"description": "tibi-server collection linter",
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^x\\-": {
"description": "template property"
}
},
"properties": {
"name": {
"type": "string",

View File

@ -4,6 +4,11 @@
"description": "tibi-server config.yml linter",
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^x\\-": {
"description": "template property"
}
},
"properties": {
"namespace": {
"type": "string",

View File

@ -4,6 +4,11 @@
"description": "tibi-server field linter",
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^x\\-": {
"description": "template property"
}
},
"properties": {
"name": {
"type": "string",

View File

@ -4,6 +4,11 @@
"description": "tibi-server hooks linter",
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^x\\-": {
"description": "template property"
}
},
"properties": {
"get": {
"type": "object",

View File

@ -4,6 +4,9 @@
"description": "tibi-server imageFilter linter",
"type": "object",
"patternProperties": {
"^x\\-": {
"description": "template property"
},
"^[a-zA-Z0-9_-]+$": {
"type": "array",
"items": {

View File

@ -4,6 +4,11 @@
"description": "tibi-server index linter",
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^x\\-": {
"description": "template property"
}
},
"properties": {
"name": {
"type": "string",

View File

@ -4,6 +4,11 @@
"description": "tibi-server cronjob linter",
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^x\\-": {
"description": "template property"
}
},
"properties": {
"meta": {
"type": "object",
@ -24,4 +29,4 @@
}
},
"required": ["type", "file"]
}
}

View File

@ -15,6 +15,9 @@
}
},
"patternProperties": {
"^x\\-": {
"description": "template property"
},
"^token:": {
"description": "permissions for header or query token",
"$ref": "#/definitions/permissionSet"

View File

@ -1,9 +1,13 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "JSON Schema tibi-server imageFilter configuration",
"description": "tibi-server imageFilter linter",
"description": "tibi-server projections linter",
"type": "object",
"patternProperties": {
"^[a-zA-Z0-9_-]$": {
"^x\\-": {
"description": "template property"
},
"^[a-zA-Z0-9_-]+$": {
"type": "object",
"description": "dataset query projection config",
"properties": {