OpenAPITools / OpenAPITools/openapi-generator
[REQ] api-name-suffix for swift5 generator
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Is your feature request related to a problem? Please describe.
Our yaml files contain the tags in a format of type DevicesApi so they end with "Api" anyways.
So Swift5 generates files that are called "DevicesApiAPI". I want to get rid of the APU suffix then.
Describe the solution you'd like
It would be great to implement the api-name suffix for the swift5 generator which seems currently only be implemented in ruby, python, jaxrs
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
Start with the swift5 generator and compare how the api-name-suffix option is implemented in the ruby, python, and jaxrs generators. Confirm how the Swift5 generator names API files, then make the suffix configurable so an existing Api ending is not duplicated; done when the requested suffix behavior works for Swift5.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100