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

Allow raising errors from within a custom whatever

Open Morriz opened this issue 3 years ago • 3 comments

Prerequisites

Description

It should be possible to raise an error from within a custom component. Currently it seems that only schema validation errors are taken into account, but there are other potential errors:

  • a value is deemed invalid by the component, not the schema. Example:
    • a code editor that determines the (schemaless) content has a valid shape.

Expected behavior

An extra function passed in, like raiseErrors, that accepts an array of error strings.

Morriz avatar Feb 18 '22 16:02 Morriz

Any progress on this? Such a valuable feature to add since it will help with creating many customizations.

cdolek avatar Dec 09 '22 16:12 cdolek

+1, I'd also find this feature super valuable.

ericalli avatar Apr 22 '23 23:04 ericalli

+1

mc-smarthelio avatar Oct 19 '23 11:10 mc-smarthelio