Files
rustycms/schemas/image_gallery.schema.json

133 lines
2.8 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": true,
"properties": {
"_slug": {
"description": "Entry identifier (URL slug / filename without extension)",
"type": "string"
},
"description": {
"description": "Optional gallery description",
"type": "string"
},
"images": {
"description": "Images (references to img)",
"items": {
"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"
}
]
},
"type": "array"
},
"layout": {
"description": "Column width (grid) like CF_ComponentLayout",
"properties": {
"breakout": {
"default": false,
"description": "Breakout layout (full width)",
"type": "boolean"
},
"desktop": {
"description": "Width on desktop (optional)",
"enum": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12"
],
"type": "string"
},
"mobile": {
"default": "12",
"description": "Width on mobile (112)",
"enum": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12"
],
"type": "string"
},
"spaceBottom": {
"default": 0,
"description": "Space below (rem)",
"enum": [
0,
0.5,
1,
1.5,
2
],
"type": "number"
},
"tablet": {
"description": "Width on tablet (optional)",
"enum": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12"
],
"type": "string"
}
},
"required": [
"mobile"
],
"type": "object"
},
"name": {
"description": "Internal gallery name",
"type": "string"
}
},
"required": [
"_slug",
"name",
"images"
],
"type": "object"
}