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

[ bsd3, library, web ] [ Propose Tags ] [ Report a vulnerability ]

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

Maintainer's Corner

Package maintainers

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
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
Uploaded by KenzoYotsuya at 2021-05-07T08:34:20Z
Distributions
Downloads 370 total (7 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 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.

License

Copyright (c) IIJ Innovation Institute Inc.

Licensed under The 3-Clause BSD License.