Skip to content
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

Initialization / Validation of required non-existent data attributes #896

Closed
sdirix opened this issue Feb 21, 2018 · 1 comment
Closed
Milestone

Comments

@sdirix
Copy link
Member

sdirix commented Feb 21, 2018

When an attribute is set to required in JSONSchema and the currently bound data does not contain said attribute a validation error is shown XXX is a required property.

When for example an attribute of type string is required and has no other constraints, then entering and removing a value in the corresponding input will remove the validation error. This is the case because now the empty string "" is bound in the data. However for the user the form does not look different than before.

This situation could be improved for example by initializing the data attributes or changing the initial validation. The solution should be configurable and be reasonable for the default use case.

@edgarmueller
Copy link
Contributor

Duplicate of #1168

@edgarmueller edgarmueller marked this as a duplicate of #1168 Nov 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants