This is a wrapper around Joi, this is a tool to validate the JSON.
It covers a lot of cases and this is simple to understand and configure.
For more details about that, I recommend you to read the Joi documentation : @hapi/joi
Where to find the code Github
Development - Deployed - Stable - Production
- Add tests
- Error handling