swagger-api / swagger-api/swagger-codegen

[Swift] Static declarations

Open
#9,394 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

Swift 5, not able to compile as getting error open vs public

Swagger-codegen version

Code-gen version: 2.4.4

Swagger declaration file content or url
Steps to reproduce

above mention code would throw the error. no steps are needed to reproduce.

Related issues/PRs

https://github.com/swagger-api/swagger-codegen/issues/9349
after reading this it doen't seem swift 5 issue.

Suggest a fix/enhancement

Static declarations meed to be public in code-gen

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

Reproduce the generated Swift code shown in the issue with Swift 5 and confirm the compiler error on the static declarations. Locate the Swift code-generation template that emits these declarations, then verify the generated client compiles without the open-versus-public error.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.