continuous-integration/drone/push Build is passing
- project.schema.json: cache.image.{path, autoCleanup.{maxAge,maxFiles,tempMaxAge}};
Server-only-Knöpfe (enabled, interval, Laufbudgets) sind bewusst nicht vorgesehen.
- asset.schema.json: cachePath optional, ohne Pflicht-Verzeichnis, verweist auf
cache.image.path als Default.
- index.d.ts und Beispiel-YAML nachgezogen.
86 lines
2.1 KiB
JSON
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": 40000000
|
|
}
|
|
}
|
|
},
|
|
"imageFilter": {
|
|
"oneOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"$ref": "image-filter.schema.json"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"access",
|
|
"imageFilter"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"path"
|
|
]
|
|
} |