openapi-parser icon indicating copy to clipboard operation
openapi-parser copied to clipboard

Find a way to handle type alias

Open fhgbaguidi opened this issue 6 years ago • 1 comments

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.

fhgbaguidi avatar Mar 30 '18 11:03 fhgbaguidi

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

alexjomin avatar Mar 30 '18 11:03 alexjomin