-
-
Notifications
You must be signed in to change notification settings - Fork 358
Closed
@mfulton26
Description
UI generation tools would benefit, I think, from having a way to specify the order of properties.
For simple cases, perhaps properties could be optionally defined as an array of objects where at a minimum each object has a name property:
"properties": [ { "name": "foo", "type": "string" }, { "name": "bar", "type": "boolean" } ]
Alternatively a new keyword could be introduced, propertiesOrder:
"properties": { "bar": { "type": "boolean" }, "foo": { "type": "string" } }, "propertiesOrder": ["foo", "bar"]
This keyword could also support patterns:
"properties": { "bar": { "type": "boolean" }, "foo": { "type": "string" }, "num": { "type": "number" } }, "propertiesOrder": [".*", "foo", "bar"]
Metadata
Metadata
Assignees
Labels
No labels