@hackage wai-middleware-validation0.1.0.2
WAI Middleware to validate the request and response bodies
Categories
License
BSD-3-Clause
Maintainer
kyotsuya@iij-ii.co.jp
Links
Versions
Installation
Dependencies (11)
- base >=4.7 && <5
- bytestring
- containers
- filepath
- text
- aeson Show all…
Dependents (0)
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.