swagger-api / swagger-api/swagger-codegen
Cannot use Carthage to download swift4 generated code
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
We generated the swift code. I use carthage to download it but I receive an error about missing schema. I checked the output and see that there is no xcodeproj generated
openapi-generator version
3.2.3
OpenAPI declaration file content or url
no *.xcodeproj file.
Command line used for generation
openapi-generator generate -i https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml -g swift4 -o client-swift -D projectName=Test,responseAs=RxSwift
Suggest a fix/enhancement
if the openapi-generator generates the *.xcodeproj file and has inside target that is shared then I can use carthage to download the code
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 provided openapi-generator command and inspect the swift4 output in client-swift, focusing on why no .xcodeproj is generated. Done means the generated Swift client includes an Xcode project with a shared target and can be downloaded with Carthage without a missing-schema error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100