OpenAPITools / OpenAPITools/openapi-generator

[REQ] api-name-suffix for swift5 generator

Open
#14,516 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.