react-jsonschema-form
react-jsonschema-form copied to clipboard
Validation errors for properties using the oneOf keyword are rendered twice
Prerequisites
- [x] I have read the documentation;
- [X] In the case of a bug report, I understand that providing a SSCCE example is tremendously useful to the maintainers.
- [X] Ideally, I'm providing a sample JSFiddle or a shared playground link demonstrating the issue.
Description
Validation errors for properties using the oneOf keyword are rendered twice; once under the input field generating the error and again underneath the parent property defining the oneOf array.
Steps to Reproduce
- Navigate to this example
- Enter an integer or a string that is not a valid email address, then press submit (the default value in the example should trigger an error).
Expected behavior
The resulting validation errors should only be rendered on the form in one location.
Actual behavior
The resulting validation errors are rendered twice, both directly under the input field and again under the parent property that defines the oneOf array.
Version
3.1.0
This issue has been automatically marked as possibly close because it has not had recent activity. It will be closed if no further activity occurs. Please leave a comment if this is still an issue for you. Thank you.
This issue was closed because of lack of recent activity. Reopen if you still need assistance.