Files
tibi-types/schemas/config/asset.schema.json
T
apairon 38f00fdeff
continuous-integration/drone/push Build is passing
Schema: Asset-maxPixels auf 200 MP anheben
2026-10-29 13:49:52 +00:00

86 lines
2.1 KiB
JSON

{
"$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"
]
}