We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In index.d.ts the FieldValidation type does not support the schemas that have properties of type: 'object' with there own properties keys
For the following schema
import * as RJSF from '@rjsf/core' const mySchema = { 'type': 'object', 'properties': { 'anotherObject': { 'type': 'object', 'properties': { 'someField': {'type':'string'} } } } } function customValidate(formData:any, errors:RJSF.FormValidation):RJSF.FormValidation { if(!formData.anotherObject.someField){ errors.anotherObject.someField.addError('This field has special validation rules') } return errors }
Typescript should compile
There are typescript compilation errors
Latest
The text was updated successfully, but these errors were encountered:
Fixed in the v5 beta, see the 5.x migration guide
Sorry, something went wrong.
No branches or pull requests
Prerequisites
Description
In index.d.ts the FieldValidation type does not support the schemas that have properties of type: 'object' with there
own properties keys
Steps to Reproduce
For the following schema
Expected behaviour
Typescript should compile
Actual behaviour
There are typescript compilation errors
Version
Latest
The text was updated successfully, but these errors were encountered: