Skip to content
New issue

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

precompiledValidator validateFormData throwing error schema provided differs from precompiled schema. #3708

Closed
3 of 4 tasks
cwendtxealth opened this issue May 30, 2023 · 0 comments · Fixed by #3709
Closed
3 of 4 tasks
Labels
bug needs triage Initial label given, to be assigned correct labels and assigned

Comments

@cwendtxealth
Copy link
Contributor

Prerequisites

What theme are you using?

core

Version

5.7

Current Behavior

precompiledValidator.validateFormData() throwing error that precompiled schema differs from provided schema even though the two schemas used are the same. This is happening because Form.validate() is first resolving the root schema then calling validateFormData.

The precompiledValidator.rawValidation needs to first resolve the rootSchema then compare the two

Expected Behavior

Expected the two schemas to be equal and it validate the form.

Steps To Reproduce

No response

Environment

- OS:
- Node:
- npm:

Anything else?

No response

@cwendtxealth cwendtxealth added bug needs triage Initial label given, to be assigned correct labels and assigned labels May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs triage Initial label given, to be assigned correct labels and assigned
Projects
None yet
1 participant