joi icon indicating copy to clipboard operation
joi copied to clipboard

How to set 'covert' to false globally

Open camillalo opened this issue 3 years ago • 1 comments

I wan't to set convert: false globally, rather than in:

Joi.validate({age: '1'}, {convert: false}) how can i coding?

camillalo avatar Sep 24 '21 10:09 camillalo

Also, i need the string to be trimmed, when convert set 'false' in validate(), what should i do?

camillalo avatar Sep 24 '21 10:09 camillalo