I'm searching for a module to validate POST json requests in my Express.js application.
What json schema module do you use in your node.js apps?
I assume node-validator (https://github.com/chriso/node-validator) is not an option here because it works only with strings.
I recently wrote express-jsonschema. The main differences with the other validators out there are:
express-schema-validator, express-validate, and Paperwork are all great. They each have their own unique syntax for declaring schemas and also control how your app responds to invalid data (i.e. status code and data structure).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With