wai-middleware-validation ![CircleCI](https://camo.githubusercontent.com/b5358ab4493ce107fc3c065790ea210daf3b368cc883fda3bbe5a2ec2435d79a/68747470733a2f2f636972636c6563692e636f6d2f67682f69696a2d69692f7761692d6d6964646c65776172652d76616c69646174696f6e2e7376673f7374796c653d737667)
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.