swagger-api / swagger-api/swagger-codegen
[Python] Using OperationId to name the methods
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
I want to create a client with method names that are different than the operationId because I need to have multiple methods that have the same but are in different API groups. This is currently impossible because operationIds are required to be globally unique.
Swagger-codegen version
2.3.1
Swagger declaration file content or url
Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement
Maybe we could have a flag that specifies another place to find the particular method name, perhaps within an extension (-x-) tag.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, command, or entry point are named. Start by locating how Python client methods derive names from operationId and how generator flags or specification extensions are handled. Done means supporting distinct method names for operations with repeated operationIds, with coverage for the requested behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100