2023-10-24 00:31:52 +02:00
|
|
|
{
|
2023-11-04 19:30:10 +01:00
|
|
|
"examples": ["default", "fill", ["100%", "100%"]],
|
2023-10-24 00:31:52 +02:00
|
|
|
"definitions": {
|
|
|
|
|
"size_coord": {
|
|
|
|
|
"oneOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"enum": ["default", "fill"]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"pattern": "^[0-9]+(px|%)$"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"minimum": 0
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"examples": ["default", "fill", "100px", "100%", "100% - 2px"]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"oneOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "A variable",
|
|
|
|
|
"$ref": "./item_ref.json"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "array",
|
|
|
|
|
"description": "A size with width and height.",
|
|
|
|
|
"items": [
|
|
|
|
|
{
|
|
|
|
|
"title": "X",
|
|
|
|
|
"description": "A variable",
|
|
|
|
|
"$ref": "#/definitions/size_coord"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Y",
|
|
|
|
|
"description": "A variable",
|
|
|
|
|
"$ref": "#/definitions/size_coord"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Width",
|
|
|
|
|
"description": "A variable",
|
|
|
|
|
"$ref": "#/definitions/size_coord"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Height",
|
|
|
|
|
"description": "A variable",
|
|
|
|
|
"$ref": "#/definitions/size_coord"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
2023-11-04 19:30:10 +01:00
|
|
|
]
|
2023-10-24 00:31:52 +02:00
|
|
|
}
|