tibi-types/schemas/api-config/config.json
Sebastian Frank f250ddee2c
All checks were successful
continuous-integration/drone/push Build is passing
allow x- properties in schema
2022-10-12 16:23:32 +02:00

61 lines
1.8 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "JSON Schema tibi-server config file",
"description": "tibi-server config.yml linter",
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^x\\-": {
"description": "template property"
}
},
"properties": {
"namespace": {
"type": "string",
"description": "suffix for mongo db database and part of api url, can be overwritten in database project settings"
},
"meta": {
"type": "object",
"description": "meta object used for admin ui configuration",
"additionalProperties": true,
"properties": {
"imageUrl": {
"type": "string",
"description": "project's teaser image url shown in admin ui"
}
}
},
"collections": {
"type": "array",
"description": "list of collections in this project",
"items": {
"oneOf": [
{
"$comment": "for include tag",
"type": "string"
},
{
"$ref": "collection.json"
}
]
}
},
"jobs": {
"type": "array",
"description": "list of jobs in this project",
"items": {
"oneOf": [
{
"$comment": "for include tag",
"type": "string"
},
{
"$ref": "job.json"
}
]
}
}
},
"required": ["namespace"]
}