alexjomin / openapi-parser

Simple and still naive openapi documentation generator from comments of your Go code.
18 stars 8 forks source link

Find a way to handle type alias #13

Open fhgbaguidi opened 6 years ago

fhgbaguidi commented 6 years ago

Hello, the idea behind this enhancement is to see whether the Open Api parser can handle type alias. For example we can use something like:

// @openapi:schema
type Error = jsonapi.ErrorObject

instead of re-define (duplicate) the struct locally just to add @openapi:schema

This will allow to use external type to describe our API in the swagger file.

alexjomin commented 6 years ago

Hello, thank you. Sounds good to me, enhancement tag added !