-
Notifications
You must be signed in to change notification settings - Fork 40
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
Example provided does not work when insert validation #67
Comments
It seems to be working fine in the demo containers example: https://flipbyte.github.io/formik-json-schema/#containers. The only difference i could see in your schema and that of the example is the the error message "Required field". Can you try without that and see whether it's working? |
@easeq It still not working as showed in next images... If you would like to reproduce, use this schema provided with the addition of validation:
|
Which version of formik-json are you using? Also, try this:
|
Im using the latest published in npm, When I use a simple element name attribute like |
Describe the bug
Hello!
Using the example provided and inserting any simple validation it's not working... I check it out and I have discovered that its always dispatching error when there's a nested field like
attributes.title
orattributes[title]
, when the field name istitle
only the validation works without any problem. It seems not validating with the current value!To Reproduce
1: https://github.com/flipbyte/formik-json-schema#prepare-your-form-object
2: Add simple string required validation.
Expected behavior
It expected to show error only when field is empty.
The text was updated successfully, but these errors were encountered: