swagger-api / swagger-api/swagger-codegen

[Swift4] Can the APIHelper be made public?

Open
#7,532 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

THe APIHelper class contains useful methods like rejectNilHeaders which can be used in and out of the Swagger codegen code. However this cannot be used as the class is not public and the methods are internal.

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

Make the class public and the methods public just like CodableHelper

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

Search the Swift4 generator templates for APIHelper and compare its visibility with CodableHelper. Confirm which generated helper and methods are affected, then check the generated Swift output or existing tests; done means APIHelper and the requested methods are publicly usable outside the generated code.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.