Skip to content

Validation of a property with patternProperties is wrongly failing #4518

Open
@lucas-jc

Description

@lucas-jc

Prerequisites

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

  1. Open this shared link of RJSF Playground example.
  2. Click in the form submit button, the validation is ok.
  3. Fill annotation1 field with any text and then clean it.
  4. 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

Anything else?

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions