RustyCMS: File-based headless CMS with REST API, admin UI, multilingual support
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
27
schemas/headline.schema.json
Normal file
27
schemas/headline.schema.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"additionalProperties": true,
|
||||
"properties": {
|
||||
"_slug": { "description": "Entry identifier", "type": "string" },
|
||||
"internal": { "description": "Internal key", "type": "string" },
|
||||
"text": { "description": "Headline text", "type": "string" },
|
||||
"tag": {
|
||||
"description": "HTML tag",
|
||||
"enum": ["h1", "h2", "h3", "h4", "h5", "h6"],
|
||||
"type": "string"
|
||||
},
|
||||
"layout": {
|
||||
"properties": {
|
||||
"mobile": { "default": "12", "enum": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], "type": "string" },
|
||||
"tablet": { "enum": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], "type": "string" },
|
||||
"desktop": { "enum": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], "type": "string" },
|
||||
"spaceBottom": { "enum": [0, 0.5, 1, 1.5, 2], "type": "number" }
|
||||
},
|
||||
"required": ["mobile"],
|
||||
"type": "object"
|
||||
},
|
||||
"align": { "enum": ["left", "center", "right"], "type": "string" }
|
||||
},
|
||||
"required": ["_slug", "internal", "text", "tag"],
|
||||
"type": "object"
|
||||
}
|
||||
Reference in New Issue
Block a user