Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request validation middleware for go-chi server #278

Conversation

wangyoucao577
Copy link
Contributor

@wangyoucao577 wangyoucao577 commented Jan 12, 2021

Changes

  • Provides request validation middleware for go-chi server, which is similar with middleware to validate request for echo server;
  • This middleware is good for net/http either since go-chi is compatible with net/http;

Please help to review. Thanks!

Closes #271
#2

@deepmap-marcinr deepmap-marcinr merged commit 1004432 into oapi-codegen:master Jan 29, 2021
@wangyoucao577 wangyoucao577 deleted the feature/validate-middleware-for-chi branch January 30, 2021 02:38
adrianpk pushed a commit to foorester/oapi-codegen that referenced this pull request Jan 16, 2024
* feat: request validator for go-chi or net/http

* feat: add chi request validator in example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Middleware for Chi to validate request
2 participants