aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus@anhgelus.world>2024-12-10 20:34:11 +0100
committerAnhgelus Morhtuuzh <anhgelus@anhgelus.world>2024-12-10 20:34:11 +0100
commit8f86a7299d75b2905e4e6eb61f43750c51ed48e4 (patch)
tree073b347673c258f9b80a18efe8b8cefeb7b3abcf
parenta5955c32fb3b22e37769df49196ddab7b7d53b7d (diff)
feat(config): json schema for custom pages
-rw-r--r--config.schema.json (renamed from schema.json)0
-rw-r--r--custom_page.schema.json117
2 files changed, 117 insertions, 0 deletions
diff --git a/schema.json b/config.schema.json
index 9b325c3..9b325c3 100644
--- a/schema.json
+++ b/config.schema.json
diff --git a/custom_page.schema.json b/custom_page.schema.json
new file mode 100644
index 0000000..c7a1907
--- /dev/null
+++ b/custom_page.schema.json
@@ -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"
+ ]
+} \ No newline at end of file