{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "asset.schema.json", "title": "Tibi asset config", "type": "object", "additionalProperties": false, "patternProperties": { "^x-": {} }, "properties": { "name": { "type": "string" }, "path": { "type": "string" }, "imageProcessing": { "type": "object", "additionalProperties": false, "properties": { "access": { "type": "string", "enum": [ "public" ] }, "cachePath": { "type": "string", "description": "Optional cache directory for filtered variants. An explicit value is project-controlled: relative to the project's config.yml, \"..\" needs security.allowUpperPaths, absolute needs security.allowAbsolutePaths. Omit it to use cache.image.path (default ../cache/image). The project namespace is appended and the directory is created lazily.", "pattern": "^.+$" }, "allowOriginal": { "type": "boolean" }, "defaultFilter": { "type": "string" }, "allowedInputTypes": { "type": "array", "items": { "type": "string", "enum": [ "image/jpeg", "image/png", "image/webp" ] } }, "limits": { "type": "object", "additionalProperties": false, "properties": { "maxInputBytes": { "type": "integer", "minimum": 1, "maximum": 67108864 }, "maxPixels": { "type": "integer", "minimum": 1, "maximum": 200000000 } } }, "imageFilter": { "oneOf": [ { "type": "string" }, { "$ref": "image-filter.schema.json" } ] } }, "required": [ "access", "imageFilter" ] } }, "required": [ "name", "path" ] }