JSON Schema to HTML form generator, supporting dynamic subschemas (on the fly resolution). Extensible and customizable library with zero dependencies. Bootstrap add-ons provided
Currently if the schema has an object property, the form data always contains the object even if it's marked as "required": false.
It would be great if the user could opt out of setting a value for the object.
Possible solution would be for optional objects to have an "Add Item" button similar to the one for arrays (but of course limited to one item).
For example here's a form schema with an optional "widget" object. Desired behavior is that if the user does not specify a widget, the data is {} instead of {"widget":{}}.
Currently if the schema has an object property, the form data always contains the object even if it's marked as
"required": false
.It would be great if the user could opt out of setting a value for the object.
Possible solution would be for optional objects to have an "Add Item" button similar to the one for arrays (but of course limited to one item).
For example here's a form schema with an optional "widget" object. Desired behavior is that if the user does not specify a widget, the data is
{}
instead of{"widget":{}}
.