Skip to content

Remove unreferenced components when filter is applied #2013

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
timofei-iatsenko opened this issue May 5, 2025 · 1 comment
Open

Remove unreferenced components when filter is applied #2013

timofei-iatsenko opened this issue May 5, 2025 · 1 comment
Labels
feature 🚀 New feature or request

Comments

@timofei-iatsenko
Copy link

Description

Our api services exposes different endpoints to separate users traffic:

/public
/internal

They all described in one OpenAPi schema, since they are served from one microservice.

The endpoints on these prefixes are consumed by completely different application.

I want to generate types and sdks only for the /public prefixed endpoints. I was able to achieve that, but generator still generate all component types for all entities used in /internal endpoint.

What i want is to have a reference count feature for components in OpenApi schema, and if it's not used anywhere it will not be generated.

Currently this is very hard to achieve using exclude/include feature, because you need to list all type names one by one.

@timofei-iatsenko timofei-iatsenko added the feature 🚀 New feature or request label May 5, 2025
@mrlubos
Copy link
Member

mrlubos commented May 5, 2025

Agreed. Yep this should be polished more 🤝

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

No branches or pull requests

2 participants