Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Store Connect Open API Spec Doesn't Compile #248

Open
stherold opened this issue Sep 8, 2020 · 3 comments · May be fixed by #249
Open

App Store Connect Open API Spec Doesn't Compile #248

stherold opened this issue Sep 8, 2020 · 3 comments · May be fixed by #249

Comments

@stherold
Copy link

stherold commented Sep 8, 2020

I try to use your awesome tool to generate code for the App Store Connect API OpenApi Spec. This works great and the result are 500+ Swift files. But when I cd into the output directory and build using swift build I get a ton of compilation errors, mostly like:

out/Sources/Models/App.swift:789:34: error: generic parameter 'T' could not be inferred
                    `self` = try container.decodeIfPresent("self")
                                  ^

My environment is as follows:

Xcode 11.7 (11E801a)
Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53)
Target: x86_64-apple-darwin19.6.0

The minimum swift tools version , specified in the Package.swift is set to Swift 4. Maybe there is a problem?

Any idea, since you tool would be a huge time-/lifesaver 👍

@yonaskolb
Copy link
Owner

Hi @stherold. This would be a great addition to the list of fixtures we have in https://github.com/yonaskolb/SwagGen/tree/master/Specs
Would you like to open a PR that adds that and run build_specs.sh, and commit the result? Then we can look at the failures on CI and in the PR, and see if we can fix them

@stherold
Copy link
Author

stherold commented Sep 9, 2020

That would be awesome 🤩 I try to do that asap, probably this night (10-15hrs away) 👍

@Blackjacx
Copy link

Alright PR created: #249

@Blackjacx Blackjacx linked a pull request Sep 9, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants