Closed JdSeus closed 2 years ago
Sorry. It seems to be duplicated of https://github.com/arb/celebrate/issues/228.
I recommend put in the documentation that joiOptions should be something like that {warnings: true, abortEarly: false} to full mode work properly.
Anyway, thanks.
Any PR that improves the documentation are always welcome 😄
node
version - v14.17.0celebrate
version - 15.0.0joi
version - 17.4.2Hello everyone, I'm trying to use Celebrate on mode FULL but it doesn't seem to be working.
Here is my Schema:
(I have tried before this way, but got the same results )
This is my my require at ClientsController (where exports.postClientValidation is):
This is how i'm using Celebrate:
ClientsController.postClient is irrelevant in this case, since i'm testing the validation of Celebrate, which is encapsulated in ClientsController.postClientValidation.
This is the result on Postman, when 3 fields are deselected:
If I understood it correctly, it should be something like that on mode full:
I'm not sure about the validation message though.
Anyway, is it something I did wrong? Or mode full is not working?
Thanks in advance.