rjsf-team / react-jsonschema-form

A React component for building Web forms from JSON Schema.
https://rjsf-team.github.io/react-jsonschema-form/
Apache License 2.0
14.14k stars 2.18k forks source link

Allow raising errors from within a custom whatever #2718

Open Morriz opened 2 years ago

Morriz commented 2 years ago

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:

Expected behavior

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

cdolek commented 1 year ago

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

ericalli commented 1 year ago

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

mc-smarthelio commented 11 months ago

+1