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

Generate components with zero paths in the service #2360

Open
agaro1121 opened this issue Jul 26, 2024 · 2 comments
Open

Generate components with zero paths in the service #2360

agaro1121 opened this issue Jul 26, 2024 · 2 comments
Labels
guidance Question that needs advice or information.

Comments

@agaro1121
Copy link

Is there a way to generate OpenAPI components/schemas that are not used in a path?

I tried converting a model and I only get schemas when they are used in a path. I set config.setKeepUnusedComponents(true) but that may not be doing what I think it does.

@JordonPhillips
Copy link
Contributor

Do you mean shapes that aren't connected to the service through an operation? If so, no.

@JordonPhillips JordonPhillips added guidance Question that needs advice or information. closing-soon This issue will automatically close in 7 days unless further comments are made. labels Aug 19, 2024
@agaro1121
Copy link
Author

Yeah that's what I meant. I eventually found the code path that has the constraint.

@github-actions github-actions bot removed the closing-soon This issue will automatically close in 7 days unless further comments are made. label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guidance Question that needs advice or information.
Projects
None yet
Development

No branches or pull requests

2 participants