Is your feature request related to a problem? Please describe.
As a user, it is hard to understand the validation errors since they do not show which schema the property is for.
E.g. missing schema_a.property_1 is displayed as must have required property 'Property 1' without mention that it is for schema_a.
This gets confusing when there are many properties with the same name, which happens quite often with arrays.
Another example, seen in the screenshot below. The full property is present in the logs but not in the displayed UI,
Describe the solution you'd like
We can display the full property name by adding a transformErrors function to the rjsf props (docs). Something like this would work since error.stack is what is displayed in the UI:
function transformErrors(errors) {
return errors.map(error => {
if (error.property) { error.stack = `${error.property}: ${error.stack}` }
return error
})
}
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe. As a user, it is hard to understand the validation errors since they do not show which schema the property is for.
schema_a.property_1
is displayed asmust have required property 'Property 1'
without mention that it is forschema_a
.Another example, seen in the screenshot below. The full property is present in the logs but not in the displayed UI,
Describe the solution you'd like We can display the full property name by adding a
transformErrors
function to the rjsf props (docs). Something like this would work sinceerror.stack
is what is displayed in the UI:Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.