-
Notifications
You must be signed in to change notification settings - Fork 413
Closed
Description
Is your feature request related to a problem? Please describe.
JSON Schema specifies default
property. As there is no specific behavior defined in the specification regarding this attribute, we usually ignore it.
Usually we ignore this property in JSON Forms and let for example AJV handle it. However in the case of adding new elements in arrays, it would make sense for JSON Forms to respect the default
attribute and initialize the new element in this way. This feature could be made optional either via UI Schema options or the config.
Describe the solution you'd like
Support the default
attribute in JSON Schema when creating new array elements.
Describe alternatives you've considered
Not supporting this feature or turn it off by default.
Framework
Core, React, Angular, Vue 3
RendererSet
No response
Additional context
No response