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

OpenAPI Spec Validation Feature or Guidance #946

Open
Renizmy opened this issue Aug 24, 2024 · 2 comments
Open

OpenAPI Spec Validation Feature or Guidance #946

Renizmy opened this issue Aug 24, 2024 · 2 comments

Comments

@Renizmy
Copy link

Renizmy commented Aug 24, 2024

I am working on a project that uses the Go-Chi router, and I want to validate incoming requests against an OpenAPI specification before any processing. While I appreciate the flexibility and performance of Go-Chi, I couldn't find any built-in support or clear guidance on how to perform OpenAPI spec validation.

If there are any best practices, existing libraries, or middleware that can be used in conjunction with Go-Chi to achieve OpenAPI spec validation, could you please provide documentation or examples ?

If there's interest or an existing plan for this feature, I'd be happy to contribute or help with testing and documentation.

@pkieltyka
Copy link
Member

chi is a minimal library, what you’re describing is best suited to be built on top and independently of chi.

For example see https://github.com/webrpc/webrpc and https://github.com/webrpc/gen-openapi

@Renizmy
Copy link
Author

Renizmy commented Aug 25, 2024

Thank you for the information. From what I understand, the idea would be to build a middleware ?
I think I will try something based on https://github.com/getkin/kin-openapi

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

No branches or pull requests

2 participants