wai-middleware-validation is a WAI Middleware that automates the validation of request and response bodies. It validates JSON format bodies according to the schema defined in the OpenAPI document.
- Describe the schema of the request and response bodies in OpenAPI document.
- Instansiate this middleware with that document as an argument.
- Apply the middleware to the WAI application.
- That's it! The middleware will automatically validate the request and response and return an error response if there is a validation error.
See Examples for more details.
Copyright (c) IIJ Innovation Institute Inc.
Licensed under The 3-Clause BSD License.