Open
Description
Prerequisites
- I have searched the existing issues
- I understand that providing a SSCCE example is tremendously useful to the maintainers.
- I have read the documentation
- Ideally, I'm providing a sample JSFiddle, Codesandbox.io or preferably a shared playground link demonstrating the issue.
What theme are you using?
core
Version
5.x
Current Behavior
The validation of the property with pattern is failing, even when it is empty.
Expected Behavior
The validation should pass in this scenario.
Steps To Reproduce
- Open this shared link of RJSF Playground example.
- Click in the form submit button, the validation is ok.
- Fill annotation1 field with any text and then clean it.
- Click again in the submit button and now the validation fails, even with the annotation object empty, the same state it was in step 2.
Environment
React Json Schema Playground environment - https://rjsf-team.github.io/react-jsonschema-form