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

Selective api generation generates models of other apis #224

Open
misrakli opened this issue May 5, 2021 · 1 comment
Open

Selective api generation generates models of other apis #224

misrakli opened this issue May 5, 2021 · 1 comment

Comments

@misrakli
Copy link

misrakli commented May 5, 2021

Hi,

Given an openapi spec with multiple APIs, I'm trying to generate code (api and corresponding models) just for a specific API.

components = [apis: 'MyTaggedApi', apiDocs: false, models: true]

While this works fine for API classes, models=true will generated all models for every API in the openapi spec.

Is this really intended that way and is selective model generation for a specific API by listing all classes for that API, like models=ModelA, ModelB (the list can be long here) the only way to solve this?

Thanks in advance for suggestions.

@john-kramer-bill
Copy link

I am also interested in this.

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

No branches or pull requests

2 participants