61 lines
1.7 KiB
JSON
61 lines
1.7 KiB
JSON
{
|
||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||
"additionalProperties": true,
|
||
"properties": {
|
||
"_slug": {
|
||
"description": "Entry identifier (URL slug / filename without extension)",
|
||
"type": "string"
|
||
},
|
||
"id": {
|
||
"description": "Unique ID (optional)",
|
||
"type": "string"
|
||
},
|
||
"youtubeId": {
|
||
"description": "YouTube video ID (e.g. from URL ?v=VIDEO_ID)",
|
||
"type": "string"
|
||
},
|
||
"params": {
|
||
"description": "Optional URL params (e.g. start=30, autoplay=1)",
|
||
"type": "string"
|
||
},
|
||
"title": {
|
||
"description": "Video title",
|
||
"type": "string"
|
||
},
|
||
"description": {
|
||
"description": "Short description",
|
||
"type": "string"
|
||
},
|
||
"layout": {
|
||
"description": "Column width (grid) like CF_ComponentLayout",
|
||
"properties": {
|
||
"mobile": {
|
||
"default": "12",
|
||
"description": "Width on mobile (1–12)",
|
||
"enum": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
|
||
"type": "string"
|
||
},
|
||
"tablet": {
|
||
"description": "Width on tablet (optional)",
|
||
"enum": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
|
||
"type": "string"
|
||
},
|
||
"desktop": {
|
||
"description": "Width on desktop (optional)",
|
||
"enum": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
|
||
"type": "string"
|
||
},
|
||
"spaceBottom": {
|
||
"description": "Space below (rem)",
|
||
"enum": [0, 0.5, 1, 1.5, 2],
|
||
"type": "number"
|
||
}
|
||
},
|
||
"required": ["mobile"],
|
||
"type": "object"
|
||
}
|
||
},
|
||
"required": ["_slug", "youtubeId"],
|
||
"type": "object"
|
||
}
|