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

Empty string should be converted to undefined #1168

Closed
edgarmueller opened this issue Nov 16, 2018 · 1 comment
Closed

Empty string should be converted to undefined #1168

edgarmueller opened this issue Nov 16, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@edgarmueller
Copy link
Contributor

Describe the bug
We should consider converting empty strings to undefined, because in case of validation errors for non-required properties it can happen that you do not get rid of the error anymore.

To Reproduce
Steps to reproduce the behavior:
Create a schema with a non-required string property with an arbitrary minLength. Delete the respective value of the property in the generated form.

Expected behavior
When clearing the form, the validation message should disappear.

Additional context
Change must be done in the core

@edgarmueller
Copy link
Contributor Author

Fixed via #1197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants