-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[BUG] [Java] Generated methods have a "_<number>" suffix #19865
Comments
I enabled verbose logging and I found something like this (here another method but same effect): "operationIdOriginal" : "removeServiceProduct",
"operationIdLowerCase" : "removeserviceproduct_0",
"operationIdCamelCase" : "RemoveServiceProduct0",
"operationIdSnakeCase" : "remove_service_product_0", |
Hello, @ahoehma do you have in your OpenAPI definition file another operationId "getProductLocalizations"? |
No. I checked that many times :) The openapi.json looks fine to me. |
+1 |
OT: Originally I thought the tags such there to leave some more "details" about my api and have some quick filter in swagger-ui. But meanwhile I realized that for each tag the generator creates it's own interface, ServiceApi, ReadApi etc. Since last version I started adding the api-version as tag which created just more none-sense interfaces like V123Api. Is there a best practice for tags? |
Description
Since version 7.9.0 my generated java-client looks different. Almost all methods got an additional "_NN" on there names which is breaking my surrounding java code.
openapi-generator version
7.9.0
OpenAPI declaration file content or url
I can't post the whole definition because of closed source ... but the interesting part is here I hope. It's all about the "operationId": "getProductLocalizations" ... and all the "operationId's" are unique in the openapi.json.
Generation Details
The generated code looks like this:
How to disable this additional suffixes? And why there are even there ? :-)
Kind regards
Andreas
The text was updated successfully, but these errors were encountered: