Skip to content

Allow skipping/ignoring of arbitrary Model creation #1111

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

Open
tmulle opened this issue Apr 16, 2025 · 2 comments
Open

Allow skipping/ignoring of arbitrary Model creation #1111

tmulle opened this issue Apr 16, 2025 · 2 comments
Labels
area:client This item is related to the client extension

Comments

@tmulle
Copy link

tmulle commented Apr 16, 2025

Tell us the extension to which you'd like to add the feature.

Client

What kind of feature would you like to add?

I have a need to be able to only generate some of the models specified in the OpenAPI schema and would like to be able to have the generate skip one or more defined types.

I see that currently we can skip Deprecated ones only.

Proposal(s):

No response

Alternative(s):

No response

Additional info:

No response

Community Notes

  • Please vote by adding a 👍 reaction to the feature to help us prioritize.
  • If you want to work on this feature, please leave a comment.
@ricardozanini ricardozanini added the area:client This item is related to the client extension label Apr 16, 2025
@ricardozanini
Copy link
Member

Hi! Thanks for raising this issue. We don't plan to introduce this feature to the library currently. If you have the time and the will to do so, please open a PR, and I can help review it.

As a workaround, I recommend removing the unneeded models from your spec file. You might have different versions of it and set specific namespaces; this way, alternative code will be generated for use at runtime.

@tmulle
Copy link
Author

tmulle commented Apr 16, 2025

Hmm ok.. I am auto generating the spec file with the quarkus extension (quarkus-smallrye-openapi) so I'll have to look to see if they let me not generate part of the output. We are not doing any manual copying of the spec file at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:client This item is related to the client extension
Projects
None yet
Development

No branches or pull requests

2 participants