RustyCMS: File-based headless CMS with REST API, admin UI, multilingual support
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
39
schemas/img.schema.json
Normal file
39
schemas/img.schema.json
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"additionalProperties": true,
|
||||
"properties": {
|
||||
"_slug": {
|
||||
"description": "Entry identifier (URL slug / filename without extension)",
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"description": "Image title",
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"description": "Alt text / description",
|
||||
"type": "string"
|
||||
},
|
||||
"file": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"url": { "type": "string", "description": "Image URL" },
|
||||
"fileName": { "type": "string" },
|
||||
"contentType": { "type": "string" },
|
||||
"details": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"size": { "type": "number" },
|
||||
"image": {
|
||||
"type": "object",
|
||||
"properties": { "width": { "type": "number" }, "height": { "type": "number" } }
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["url"]
|
||||
}
|
||||
},
|
||||
"required": ["_slug", "title", "file"],
|
||||
"type": "object"
|
||||
}
|
||||
Reference in New Issue
Block a user