Skip to content

Commit

Permalink
Add: width and height for components
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianKoerner committed Apr 20, 2024
1 parent 2a9f362 commit c48597f
Showing 1 changed file with 28 additions and 16 deletions.
44 changes: 28 additions & 16 deletions src/schema/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,8 @@
"type": "string"
}
}
},
"canvas": {
"type": "object",
"properties": {
"size": {
"type": "number",
"description": "Specifies the size of the canvas in pixels.",
"minimum": 1
}
},
"required": ["size"]
}
},
"required": ["canvas"]
}
},
"attributes": {
"type": "array",
Expand All @@ -73,7 +61,23 @@
}
},
"body": {
"type": "string"
"type": "object",
"properties": {
"content": {
"type": "string"
},
"width": {
"type": "number",
"description": "Specifies the width of the canvas in pixels.",
"minimum": 1
},
"height": {
"type": "number",
"description": "Specifies the height of the canvas in pixels.",
"minimum": 1
}
},
"required": ["content", "width", "height"]
},
"components": {
"type": "array",
Expand All @@ -85,6 +89,14 @@
"type": "string",
"description": "The alpha-numeric name of the component group."
},
"width": {
"type": "number",
"minimum": 1
},
"height": {
"type": "number",
"minimum": 1
},
"probability": {
"type": "number",
"description": "The probability of this component group to be displayed in the avatar. If not set, the component group is always displayed.",
Expand Down Expand Up @@ -139,7 +151,7 @@
}
}
},
"required": ["name", "values"]
"required": ["name", "width", "height", "values"]
}
},
"colors": {
Expand Down Expand Up @@ -172,5 +184,5 @@
}
}
},
"required": ["meta", "body"]
"required": ["body"]
}

0 comments on commit c48597f

Please sign in to comment.