oapi-codegen/exp

Add libopenapi-validator derived middleware

jamietanna opened this issue · 2 comments

(This has been on my mind for a while, but thought it'd be good to have a tracking issue)

Hey, I'd be interested in looking into implementing this. What's the current state of your investigation? Is this something you'd be open to receiving a PR for?

If yes, would you prefer it to be a contribution to the individual middleware validation packages? Part of the codegen involved here? A built-in middleware? Or maybe even a generated middleware, similar to the spec embedding?

If you want to try with net/http I wrote an example with a custom template: oapi-codegen/oapi-codegen#1742