| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Sun, 18 Jan 2026 11:19:24 GMT
X-Served-By: cache-dfw-kdal2120072-DFW, cache-bom-vanm7210093-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768735164.350930,VS0,VE350
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
wai-middleware-validation: WAI Middleware to validate the request and response bodies
[Skip to Readme]
wai-middleware-validation
wai-middleware-validation: WAI Middleware to validate the request and response bodies
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.
[Skip to Readme]
Downloads
- wai-middleware-validation-0.1.0.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.0.2 |
|---|---|
| Change log | ChangeLog.md |
| Dependencies | aeson, base (>=4.7 && <5), bytestring, containers, filepath, http-types, insert-ordered-containers, lens, openapi3, text, wai [details] |
| License | BSD-3-Clause |
| Copyright | IIJ Innovation Institute Inc. |
| Author | Kenzo Yotsuya |
| Maintainer | kyotsuya@iij-ii.co.jp |
| Uploaded | by KenzoYotsuya at 2021-05-07T08:34:20Z |
| Category | Web |
| Home page | https://iij-ii.github.io/wai-middleware-validation/ |
| Source repo | head: git clone https://github.com/iij-ii/wai-middleware-validation |
| Distributions | |
| Downloads | 448 total (10 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs available [build log] Last success reported on 2021-05-07 [all 1 reports] |
Readme for wai-middleware-validation-0.1.0.2
[back to package description]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.