-
-
Notifications
You must be signed in to change notification settings - Fork 7k
[REQ] Possibility to remove service name from method name #11783
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
Comments
I am working on this for the python-experimental client in: #13007
|
@spacether or anyone else here having this issue ... Any news / ideas on this? |
@angelaki have you tried the |
Thats a great idea! But I'd need some kind of replace / regex, since I have several of Methods! |
ok. have you tried the |
Works like a charm - thank you very much! What exactly does this option do? The docs aren't very transparent here. Does it look for a specific character? Or a name being repeated with every method? |
remove operationId prefix (e.g. user_getName => getName) |
@angelaki when you've time, can you please PM me via Slack? https://join.slack.com/t/openapi-generator/shared_invite/zt-12jxxd7p2-XUeQM~4pzsU9x~eGLQqX2g |
Uh oh!
There was an error while loading. Please reload this page.
Just like probably many out there I needed to add the endpoint name to the operationId (OAI/OpenAPI-Specification#381) to keep them unique.
Having two services (e.g. Service1 & Service2) both having a method "get" I get two operationIds (e.g. Service1_get & Service2_get).
The prefix (Service1_, Service2_) is totally useless but requred by OpenAPI. Now the service clients will get generated like
Is there maybe a possibility already to make both the methods just get named "get()"? Any ideas on this?
The text was updated successfully, but these errors were encountered: