react-jsonschema-form icon indicating copy to clipboard operation
react-jsonschema-form copied to clipboard

Validation errors for properties using the oneOf keyword are rendered twice

Open julianxcarter opened this issue 4 years ago • 1 comments

Prerequisites

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

  1. Navigate to this example
  2. 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

julianxcarter avatar Oct 18 '21 13:10 julianxcarter

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.

stale[bot] avatar Apr 21 '24 03:04 stale[bot]

This issue was closed because of lack of recent activity. Reopen if you still need assistance.

stale[bot] avatar May 21 '24 20:05 stale[bot]