An awesome JSON Object Validator
@forkjs/validator
is a JSON Object validator which can be used to validate Objects and JSON against predefined schemas. It can be used with for API payload validation. All you need to do is install the package, build your schema and you are done !!
See the Quick start guide for more details.
- Nested Object Schema Validation
- Support for detailed Error Messages
- Custom Error Messages
- Debug Support
- Middleware wrapper for Express.js routes
Check out the Examples for better understanding or Get Started with the document