swagger-api / swagger-api/swagger-codegen
[Swift] Static declarations
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
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
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