Closed guilhermecastros closed 1 week ago
I believe this issue is related to https://github.com/rjsf-team/react-jsonschema-form/pull/4188. Maybe @abdalla-rko knows more about this?
@guilhermecastros Thanks for finding this. We have a bug in our NumberField
which I will be fixing soon
Prerequisites
What theme are you using?
core
Version
5.x
Current Behavior
Error messages are not being propagated correctly for json object schemas.
For instance I have these two schemas, when I raise a custom error with
schema2
it works nice as expected & described on the documentation. But when I do the same, but forschema
which has a typeobject
it doesn't work.I have created the following playground that allows you to play & to check the current behavior ⬇️
https://codesandbox.io/p/sandbox/rjsf-custom-error-ql66mh?workspaceId=7d9d1079-911b-4954-9a3d-7c3de5279f0c
Expected Behavior
Custom errors should show regardless of the schema used, which means it should show on both described scenarios.
Steps To Reproduce
object
, no error is shown.Environment
Anything else?
No response