4 ms·
I really like the error messages that Joi[1] provides. You can easily use the error.message property to give a human friendly message to the end-user and if the
by dmlittle 9y ago
I really like the error messages that Joi[1] provides. You can easily use the error.message property to give a human friendly message to the end-user and if the default options don't serve your needs you can overwrite them with custom messages.
Someone made a Joi playground a few months ago, Joi Tester[2], that makes it really easy to test your Joi schemas. If you're curious, feel free to give it a try (I'm not affiliated with the tool in any regards but I do think it's awesome).
[1] https://github.com/hapijs/joi https://github.com/hapijs/joi
[2] http://framp.me/joi-tester/ http://framp.me/joi-tester/