oapi-codegen / exp

Experimental packages for use with oapi-codegen
Apache License 2.0
0 stars 0 forks source link

Add libopenapi-validator derived middleware #1

Open jamietanna opened 4 months ago

jamietanna commented 4 months ago

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

PaulSonOfLars commented 1 month ago

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?

AidanWelch commented 1 week ago

If you want to try with net/http I wrote an example with a custom template: https://github.com/oapi-codegen/oapi-codegen/issues/1742