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 precompiledValidator class it sets the root schema in the constructor that is then compared to the passed in schema in rawValidation. These two schemas could differ when being evaluated with formData when using conditional logic that adds required fields. Here is example of simple schema that would cause this error.
When test field is set to error it will make error field required changing the schema and then will not match the rootSchema. To fix this the rootSchema should be resolved at the time rawValidation is being evaluated with formData.
Expected Behavior
No response
Steps To Reproduce
No response
Environment
- OS:
- Node:
- npm:
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Prerequisites
What theme are you using?
core
Version
5.12
Current Behavior
In
precompiledValidator
class it sets the root schema in the constructor that is then compared to the passed in schema inrawValidation
. These two schemas could differ when being evaluated with formData when using conditional logic that adds required fields. Here is example of simple schema that would cause this error.When
test
field is set to error it will makeerror
field required changing the schema and then will not match the rootSchema. To fix this the rootSchema should be resolved at the timerawValidation
is being evaluated with formData.Expected Behavior
No response
Steps To Reproduce
No response
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: