{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "JSON Schema tibi-server collection configuration", "description": "tibi-server collection linter", "type": "object", "additionalProperties": false, "patternProperties": { "^x\\-": { "description": "template property" } }, "properties": { "name": { "type": "string", "description": "collection name, part of api path" }, "defaultLanguage": { "type": "string", "description": "default language for database text index" }, "uploadPath": { "type": "string", "description": "relative to config.yml, path for file uploads" }, "meta": { "oneOf": [ { "$comment": "for include tag", "type": "string" }, { "type": "object", "description": "meta object used for admin ui configuration", "additionalProperties": true, "allOf": [{ "$ref": "collectionNavigation.json" }], "properties": { "rowIdentTpl": { "description": "template which evaluates to short string to identify entry in pe. select boxes", "$ref": "definitions.json#/definitions/evalExpressions" }, "subNavigation": { "oneOf": [ { "$comment": "for include tag", "type": "string" }, { "type": "array", "description": "sub navigation of collection", "items": { "oneOf": [ { "$comment": "for include tag", "type": "string" }, { "$ref": "collectionNavigation.json" } ] } } ] } } } ] }, "projections": { "oneOf": [ { "$comment": "for include tag", "type": "string" }, { "$ref": "projections.json" } ] }, "permissions": { "oneOf": [ { "$comment": "for include tag", "type": "string" }, { "$ref": "permissions.json" } ] }, "hooks": { "oneOf": [ { "$comment": "for include tag", "type": "string" }, { "$ref": "hooks.json" } ] }, "imageFilter": { "oneOf": [ { "$comment": "for include tag", "type": "string" }, { "$ref": "imageFilter.json" } ] }, "fields": { "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": { "oneOf": [ { "$comment": "for include tag", "type": "string" }, { "type": "array", "description": "indexes of collection", "items": { "oneOf": [ { "$comment": "for include tag", "type": "string" }, { "$ref": "index.json" } ] } } ] }, "cors": { "type": "object", "description": "cors configuration", "additionalProperties": false, "properties": { "merge": { "type": "boolean", "description": "merge with global and project cors configuration" }, "allowOrigins": { "type": "array", "description": "list of allowed origins", "items": { "type": "string" } }, "allowMethods": { "type": "array", "description": "list of allowed methods", "items": { "type": "string" } }, "allowHeaders": { "type": "array", "description": "list of allowed headers", "items": { "type": "string" } }, "allowCredentials": { "type": "boolean", "description": "allow credentials" }, "exposeHeaders": { "type": "array", "description": "list of exposed headers", "items": { "type": "string" } }, "maxAge": { "type": "integer", "description": "max age in seconds" } } } }, "required": ["name", "permissions"] }