-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON Schema default value support #570
Comments
No, currently not, but supporting this would make sense. I suppose, that the default value would only be used in case the respective data property is unset, correct? E.g., in this example, when binding an empty object |
Yes that would be useful. |
This means opening a form on a JSON object will change the object without user interaction e.g. entering values into the form. I think this is not desirable. I would therefore propose a framework user should pre-initialize their JSON with default values before passing it into JSON Forms. |
@edgarmueller isn't this fixed via #1193 ? |
It's not fixed, but we can close it as a duplicate of #1193 |
Does data Schema default value, is used during render?
Schema extract:
UI schema:
The text was updated successfully, but these errors were encountered: