GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - oapi-codegen/iris-middleware

BranchesTags
Open more actions menu

Latest commit

 

History

40 Commits
40 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
oapi_validate.go
oapi_validate.go
 
 
oapi_validate_test.go
oapi_validate_test.go
 
 
renovate.json
renovate.json
 
 
test_spec.yaml
test_spec.yaml
 
 

Repository files navigation

Iris Middleware

⚠️ This README may be for the latest development version, which may contain unreleased changes. Please ensure you're looking at the README for the latest release version.

Middleware for the Iris web server for use with oapi-codegen.

Licensed under the Apache-2.0.

Validated request body

The middleware enables kin-openapi's openapi3filter.Options.KeepValidatedValue by default. After a request body passes validation, the body that handlers see (ctx.Request().Body) exposes the decoded value that was validated through a ValidatedValue() any method, and remains readable with its original bytes. An oapi-codegen strict server can bind that value instead of decoding the body a second time, so the handler receives exactly what was validated.

To turn this off, for instance to limit memory retention for very large request bodies, set DiscardValidatedValue: true in Options. This setting overrides Options.Options.KeepValidatedValue.

Middleware that replaces the request body after the validator has run (decompression, size limiting, logging wrappers and the like) hides the validated value from handlers. Register such middleware before the validator.

About

No description, website, or topics provided.

Resources

Readme
Apache-2.0 license

Security policy

Security policy
Activity
Custom properties

Stars

0 stars

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.