You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the playground, you've provided a validation schema, but it appears that it's not correctly performing the validation rules for matching the two passwords. Additionally, I couldn't find any properties in the schema or uiSchema to handle these password validations.
Your uiSchema includes the configuration to display the 'pass1' and 'pass2' fields as password input fields, but there seems to be a missing link to the validation logic required for checking if the passwords match.
The playground schema and uiSchema are as follows:
The system should perform a validation check to ensure that the password matches, and if not, it should display an error message and prevent the form from being submitted.
Steps To Reproduce
1.Please go to Playground.
2.Click on the "Validations" link or button.
Environment
- OS:
- Node:
- npm:
Anything else?
No response
The text was updated successfully, but these errors were encountered:
- update `validation` example to use RJSF v5 API
- add types for all samples and fix/ignore uncovered type issues
- Spread sample data as extra form props
* [fix] #3856
- update `validation` example to use RJSF v5 API
- add types for all samples and fix/ignore uncovered type issues
- Spread sample data as extra form props
* Changes from code review
- Use ErrorSchemaBuilder
- Deep freeze playground samples
- Remove non-latin1 apostrophes
---------
Co-authored-by: Heath C <51679588+heath-freenome@users.noreply.github.com>
Prerequisites
What theme are you using?
core
Version
5.x
Current Behavior
In the playground, you've provided a validation schema, but it appears that it's not correctly performing the validation rules for matching the two passwords. Additionally, I couldn't find any properties in the schema or uiSchema to handle these password validations.
Your uiSchema includes the configuration to display the 'pass1' and 'pass2' fields as password input fields, but there seems to be a missing link to the validation logic required for checking if the passwords match.
The playground schema and uiSchema are as follows:
schema = {
"title": "Custom validation",
"description": "This form defines custom validation rules checking that the two passwords match.",
"type": "object",
"properties": {
"pass1": {
"title": "Password",
"type": "string",
"minLength": 3
},
"pass2": {
"title": "Repeat password",
"type": "string",
"minLength": 3
},
"age": {
"title": "Age",
"type": "number",
"minimum": 18
}
}
}
uiSchema = {
"pass1": {
"ui:widget": "password"
},
"pass2": {
"ui:widget": "password"
}
}
Expected Behavior
The system should perform a validation check to ensure that the password matches, and if not, it should display an error message and prevent the form from being submitted.
Steps To Reproduce
1.Please go to Playground.
2.Click on the "Validations" link or button.
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: