Incorrect hooks configuration generates incorrect errors #3662
tyteen4a03
announced in
Roadmap
Replies: 1 comment
-
Hey @tyteen4a03 — this is actually just the way that Joi generates errors within an I will add this to our roadmap. Thank you for bringing this up as it's certainly misleading! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Link to reproduction
N/A
To Reproduce
Add this field to a collection:
Describe the Bug
The error emitted by this says:
However, the error is with
hooks.beforeValidate
which does not accept passing a single function (I think this should be changed but not the scope of this bug)Payload Version
2.0.5
Adapters and Plugins
No response
Beta Was this translation helpful? Give feedback.
All reactions