davidebianchi / gswagger

Generate an openapi spec dynamically based on the types used to handle request and response
https://pkg.go.dev/github.com/davidebianchi/gswagger
MIT License
30 stars 8 forks source link

Can we use this library to generate openapi spec for go GIN routers #120

Open vishvanava opened 1 year ago

vishvanava commented 1 year ago

HI can we use this library to generate openapi spec for go GIN routers ?

davidebianchi commented 1 year ago

Hi! Yes, sure. You should implement this interface to support another router (you can see examples under the support folder).

Do you want to add the support directly in the lib?

vishvanava commented 1 year ago

It would be nice if we had direct support in the library for the GIN framework also. I had implemented the interface and it is working

davidebianchi commented 1 year ago

Awesome! Yes, sure. Could you create a pull request to add it to the lib?