wai-middleware-validation: WAI Middleware to validate the request and response bodies

[ bsd3, library, web ] [ Propose Tags ]

Please see the README on GitHub at https://github.com/iij-ii/wai-middleware-validation#readme

[Skip to Readme]
Versions [RSS] [faq],,
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
Category Web
Home page https://github.com/iij-ii/wai-middleware-validation#readme
Source repo head: git clone https://github.com/iij-ii/wai-middleware-validation
Uploaded by KenzoYotsuya at 2021-05-07T08:22:33Z
Distributions NixOS:
Downloads 104 total (13 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2021-05-07 [all 1 reports]


[Index] [Quick Jump]


Maintainer's Corner

For package maintainers and hackage trustees


Readme for wai-middleware-validation-

[back to package description]

wai-middleware-validation CircleCI

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

  1. Describe the schema of the request and response bodies in OpenAPI document.
  2. Instansiate this middleware with that document as an argument.
  3. Apply the middleware to the WAI application.
  4. 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.