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

Components are getting lost on combining #96

Open
mojoaxel opened this issue Oct 16, 2019 · 4 comments
Open

Components are getting lost on combining #96

mojoaxel opened this issue Oct 16, 2019 · 4 comments
Labels

Comments

@mojoaxel
Copy link

mojoaxel commented Oct 16, 2019

In #35 a support for definitions has been added. These definitions are from the Swagger 2 version and have been replaced by components in OpenApi 3.

At the moment all these model definitions get removed.

This is part of the OpenApi v3 support (#4)

@shoaib-shah-iag
Copy link

@mojoaxel I think the resolution at #35 have missed few key things:

  1. Only include the definitions/models for the endpoints that included (or not excluded). Current resolution includes all the definitions.
  2. Remove definitions from inlines and rather have $ref to the definitions, when --includeDefinitions flag is passed in. Current implementation adds the definitions as well as have those inline as well.
  3. Will be great if we can get ability to exclude or include a definition (if this can be done first then at least can be used as a workaround for point 1)

@plittlewood-rpt
Copy link

@mojoaxel did you ever find a workaround for this problem? I've just run into it :)

@mojoaxel
Copy link
Author

This issue is quite old.
We use v1.4.0 and openapi: '3.0.0' and it seams to work.
Maybe we can close this issue!?

@plittlewood-rpt
Copy link

Hmm thanks - I'm using the same versions and no dice here, I don't get a components section at all. Will keep having a play around with it

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

No branches or pull requests

4 participants