Open carlosleal89 opened 8 months ago
hey @carlosleal89 , can i work on this issue?
hey @carlosleal89 , can i work on this issue?
Hi. Yes, please :)
It works for me on Joi@17.11.0: https://runkit.com/nargonath/joi-messages-for-any-required
Running it on the website as well which uses 17.12.3 works so the problem might be somewhere else.
Runtime
node
Runtime version
18.19.0
Module version
17.12.2
Used with
React TS
Any other relevant information
No response
How can we help?
Hello! I'm trying to set a custom error message for a required field, but always show the default message. For example: message ""password" is not allowed to be empty"
Bellow you can see the schema.
The custom message set to 'string.min' is working as expected, but 'any.required' not.