-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Validation on Null value "Is not of a type(s) string" #509
Comments
Indeed |
@n1k0 null is jasonschma type? I try set "type": "null" as below but i got "Unsupported field schema { "type": "null"..." "ID_NUMBER": { |
The Still, turning your |
Thoughts on a form option to cast nulls to undefined? For now I filter using the transformError prop - |
I think there should be some supported solution for this, because |
So, I'm doing a |
This is a client side form library. What you send to your server should probably be post-processed. Also, if your server expects But maybe someone wants to work on a patch? |
Derived from @1dolinski's comment, I'm currently filtering errors like this: transformErrors={errors => errors.filter(error => error.hasOwnProperty('instance'))} If I have some time left towards the end of the week, I'll look into creating a PR to support |
What was the outcome of this thread? Is the expectation to use
or is there support for |
+1 for support for |
+1 for support for ["null","string"] |
|
Description
Validation on type face problem when binding data from DB null.
The submit /post will not fire due to validation failed but if user simple enter some text and then erase it in the text box, the validation passed.
Way to produce
The text was updated successfully, but these errors were encountered: