Files
rustycms/schemas/fullwidth_banner.schema.json

65 lines
1.3 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": true,
"properties": {
"_slug": {
"description": "Entry identifier (URL slug / filename without extension)",
"type": "string"
},
"headline": {
"type": "string"
},
"image": {
"description": "Banner image",
"oneOf": [
{
"description": "Reference (slug) to collection 'img'",
"type": "string"
},
{
"properties": {
"description": {
"description": "Alt text / description",
"type": "string"
},
"src": {
"description": "Image URL",
"type": "string"
}
},
"required": [
"src"
],
"type": "object"
}
]
},
"name": {
"description": "Internal name",
"type": "string"
},
"subheadline": {
"type": "string"
},
"text": {
"description": "Banner body text",
"type": "string"
},
"variant": {
"default": "light",
"description": "Color variant",
"enum": [
"dark",
"light"
],
"type": "string"
}
},
"required": [
"_slug",
"name",
"variant",
"headline"
],
"type": "object"
}