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

Question: How to reduce the number of generated variants? #346

Open
ChristianSchwarz opened this issue Feb 13, 2025 · 2 comments
Open

Question: How to reduce the number of generated variants? #346

ChristianSchwarz opened this issue Feb 13, 2025 · 2 comments

Comments

@ChristianSchwarz
Copy link

The generator, produces 4 methods like:

getById$Plain$Response():Observable<StrictHttpResponse<JsonData>>
getById$Plain():Observable<JsonData>
getById$Json$Response():Observable<StrictHttpResponse<JsonData>>
getById$Json():Observable<JsonData>

but we only need one, that should have a signature like:

getById():Observable<JsonData>

Can this be configured somehow?

see: https://stackoverflow.com/questions/78113106/ng-openapi-gen-how-to-generate-only-one-method-per-endpoint

@ChristianSchwarz
Copy link
Author

@luisfpg friendly ping

@Subtletree
Copy link

I'm also looking for this. Would make getting the right import easier if you're only ever using one format.

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