Description
WAI Middleware to validate the request and response bodies.
Description
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.
README.md
wai-middleware-validation
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.
Overview of Usage
- 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.
License
Copyright (c) IIJ Innovation Institute Inc.
Licensed under The 3-Clause BSD License.