Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find a way to handle type alias #13

Open
fhgbaguidi opened this issue Mar 30, 2018 · 1 comment
Open

Find a way to handle type alias #13

fhgbaguidi opened this issue Mar 30, 2018 · 1 comment

Comments

@fhgbaguidi
Copy link
Contributor

fhgbaguidi commented Mar 30, 2018

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants