[swift5] Add useSPMFileStructure#9074
Conversation
modules/openapi-generator/src/main/resources/swift5/Package.swift.mustache
Outdated
Show resolved
Hide resolved
2240406 to
9fdb29b
Compare
.../openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift5ClientCodegen.java
Outdated
Show resolved
Hide resolved
|
I left a question, but otherwise looks good to me 👍 |
9fdb29b to
2ce916a
Compare
.../openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift5ClientCodegen.java
Outdated
Show resolved
Hide resolved
samples/client/petstore/swift5/urlsessionLibrary/.openapi-generator/FILES
Outdated
Show resolved
Hide resolved
59028cd to
1bf74f5
Compare
|
One last thing that I noticed is that the options To make them apear, you make something like |
10d6ef5 to
9d9f4b3
Compare
|
@aymanbagabas thanks for you patience! |
6272194 to
c62c776
Compare
|
@4brunu do you have any idea why this is failing? I couldn't tell what I'm missing in the last commit. |
3601657 to
40077fa
Compare
|
Looks like you already fix it. |
40077fa to
21d0705
Compare
|
CI is now passing. |
docs/generators/swift5.md
Outdated
There was a problem hiding this comment.
@aymanbagabas thanks for taking my feedback.
Shouldn't just swiftPackagePath be enough? In other words, we want to avoid duplicated options do very similar things.
|
I would like to give you some context regarding this PR. My suggestion is that we go with Three of the two options: @aymanbagabas @wing328 what do you think of this? |
|
TBH, I'm all for making the breaking change since the generator is still in beta and users don't expect it to be stable. But instead of introducing a boolean to allow the old behavior, users could use |
|
Only I prefer 3
In 5.2.0, we can change the option to use the new behaviour by default. |
|
Looks option 3 also looks good to me. |
There was a problem hiding this comment.
@aymanbagabas another place that I remembered that I think we need to update the path is in the XcodeGen.mustache file, the sources property
Prefer one option instead of two for simplicity. |
|
I think this discussion should've taken place earlier. Anyway, since both options have been implemented already and work as expected, I don't see the point of dropping one of them. As @wing328 mentioned, we can change this behavior and make the breaking changes in the 5.2.0 release. Drop |
|
Looks good to me. |
Signed-off-by: Ayman Bagabas <ayman.bagabas@gmail.com>
Prioritize swiftPackagePath over useSPMFileStructure
21d0705 to
85b6512
Compare
modules/openapi-generator/src/main/resources/swift5/XcodeGen.mustache
Outdated
Show resolved
Hide resolved
Add useSPMFileStructure to URLSession library
85b6512 to
2a86757
Compare
|
@aymanbagabas thanks for the changes. |
|
Sorry for the delay. PR merged. |
Signed-off-by: Ayman Bagabas ayman.bagabas@gmail.com
PR checklist
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*.For Windows users, please run the script in Git BASH.
master,5.1.x,6.0.x