Skip to content

Commit

Permalink
Clean up inconsistencies in the property schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasaglia committed Jul 15, 2024
1 parent 1b06071 commit a54df53
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
3 changes: 2 additions & 1 deletion schema/properties/bezier-property.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"const": 0
},
"k": {
"title": "Static value",
"title": "Value",
"description": "Static Value",
"$ref": "#/$defs/values/bezier"
}
}
Expand Down
3 changes: 2 additions & 1 deletion schema/properties/color-property.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"const": 0
},
"k": {
"title": "Static value",
"title": "Value",
"description": "Static Value",
"$ref": "#/$defs/values/color"
}
}
Expand Down
3 changes: 2 additions & 1 deletion schema/properties/gradient-property.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"const": 0
},
"k": {
"title": "Static value",
"title": "Value",
"description": "Static Value",
"$ref": "#/$defs/values/gradient"
}
}
Expand Down
8 changes: 7 additions & 1 deletion schema/properties/position-property.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
"type": "object",
"title": "Position Property",
"description": "An animatable property to represent a position in space",
"allOf": [
{
"$ref": "#/$defs/helpers/slottable-property"
}
],
"oneOf": [
{
"$comment": "Not animated",
Expand All @@ -14,7 +19,8 @@
"const": 0
},
"k": {
"title": "Static value",
"title": "Value",
"description": "Static Value",
"$ref": "#/$defs/values/vector"
}
}
Expand Down
12 changes: 3 additions & 9 deletions schema/properties/scalar-property.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"const": 0
},
"k": {
"title": "Static value",
"title": "Value",
"description": "Static Value",
"type": "number"
}
}
Expand All @@ -43,12 +44,5 @@
}
}
}
],
"properties": {
"sid": {
"title": "Slot Id",
"description": "Identifier for a property that can be replaced at runtime",
"type": "string"
}
}
]
}

0 comments on commit a54df53

Please sign in to comment.