feat(config): json schema for custom pages

This commit is contained in:
Anhgelus Morhtuuzh 2024-12-10 20:34:11 +01:00
parent a5955c32fb
commit 8f86a7299d
No known key found for this signature in database
GPG key ID: CAD341EFA92DDDE5
2 changed files with 117 additions and 0 deletions

117
custom_page.schema.json Normal file
View file

@ -0,0 +1,117 @@
{
"type": "object",
"properties": {
"title": {
"type": "string"
},
"uri": {
"type": "string"
},
"image": {
"type": "string"
},
"description": {
"type": "string"
},
"colors": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"tag_hover": {
"type": "string"
},
"background": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"angle": {
"type": "number"
},
"colors": {
"type": "array",
"items": {
"type": "object",
"properties": {
"color": {
"type": "string"
},
"position": {
"type": "number"
}
},
"required": [
"color",
"position"
]
}
}
},
"required": [
"type",
"angle",
"colors"
]
},
"buttons": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"text_hover": {
"type": "string"
},
"background": {
"type": "string"
},
"background_hover": {
"type": "string"
}
},
"required": [
"text",
"text_hover",
"background",
"background_hover"
]
}
},
"required": [
"text",
"tag_hover",
"background",
"buttons"
]
},
"content": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"content": {
"type": "string"
}
},
"required": [
"type",
"content"
]
}
}
},
"required": [
"title",
"uri",
"image",
"description",
"colors",
"content"
]
}