-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [Swift6] create Swift6 generator * [Swift6] create Swift6 generator * Update vapor integration * Update bitrise stack to Xcode 16 * [Swift6] tryped throws * [Swift6] tryped throws * [Swift6] combine deferred and api static method * [Swift6] update readme * [Swift6] fix some errors * [Swift6] fix some errors * [Swift6] fix some errors * [Swift6] update docs * [Swift6] update docs * Use multiline comments for examples in csharp generator (#19079) * multi * gen * Uncomment File::deleteOnExit (#19624) * [Core/Rust Server] Check references in additionalProperties correctly when checking freeForm status (#19605) * Check references in additionalProperties correctly Handle references in additionalProperties correctly when determining free-form status * Update samples * [Rust Server] Handle arrays in forms (#19625) * [Rust Server] Handle arrays in forms correctly * [Rust Server] Add tests * Update samples * [Swift6] fix CI * [Swift6] fix CI * [Swift6] fix CI * [Swift6] fix CI --------- Co-authored-by: Liri S <[email protected]> Co-authored-by: Beppe Catanese <[email protected]> Co-authored-by: Richard Whitehouse <[email protected]> Co-authored-by: William Cheng <[email protected]>
- Loading branch information
1 parent
17e0b7c
commit 7f6b130
Showing
2,314 changed files
with
166,786 additions
and
7,385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
generatorName: swift6 | ||
outputDir: samples/client/petstore/swift6/alamofireLibrary | ||
library: alamofire | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/swift6 | ||
generateAliasAsModel: true | ||
useCustomDateWithoutTime: true | ||
additionalProperties: | ||
podAuthors: "" | ||
podSummary: PetstoreClient | ||
projectName: PetstoreClient | ||
podHomepage: https://github.com/openapitools/openapi-generator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
generatorName: swift6 | ||
outputDir: samples/client/petstore/swift6/anycodableLibrary | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/any_codable.yaml | ||
modelNamePrefix: Prefix | ||
modelNameSuffix: Suffix | ||
additionalProperties: | ||
podAuthors: "" | ||
podSummary: PetstoreClient | ||
projectName: PetstoreClient | ||
podHomepage: https://github.com/openapitools/openapi-generator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
generatorName: swift6 | ||
outputDir: samples/client/petstore/swift6/apiNonStaticMethod | ||
library: alamofire | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/swift6 | ||
additionalProperties: | ||
responseAs: AsyncAwait,Combine,Result,PromiseKit,RxSwift | ||
apiStaticMethod: false | ||
podAuthors: "" | ||
podSummary: PetstoreClient | ||
projectName: PetstoreClient | ||
podHomepage: https://github.com/openapitools/openapi-generator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
generatorName: swift6 | ||
outputDir: samples/client/petstore/swift6/asyncAwaitLibrary | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/swift6 | ||
generateAliasAsModel: true | ||
additionalProperties: | ||
responseAs: AsyncAwait | ||
podAuthors: "" | ||
podSummary: PetstoreClient | ||
projectName: PetstoreClient | ||
podHomepage: https://github.com/openapitools/openapi-generator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
generatorName: swift6 | ||
outputDir: samples/client/petstore/swift6/combineDeferredLibrary | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/swift6 | ||
generateAliasAsModel: true | ||
additionalProperties: | ||
responseAs: Combine | ||
podAuthors: "" | ||
podSummary: PetstoreClient | ||
projectName: PetstoreClient | ||
podHomepage: https://github.com/openapitools/openapi-generator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
generatorName: swift6 | ||
outputDir: samples/client/petstore/swift6/combineLibrary | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/swift6 | ||
generateAliasAsModel: true | ||
additionalProperties: | ||
responseAs: Combine | ||
combineDeferred: false | ||
podAuthors: "" | ||
podSummary: PetstoreClient | ||
projectName: PetstoreClient | ||
podHomepage: https://github.com/openapitools/openapi-generator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
generatorName: swift6 | ||
outputDir: samples/client/petstore/swift6/default | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/swift6 | ||
generateAliasAsModel: true | ||
additionalProperties: | ||
podAuthors: "" | ||
podSummary: PetstoreClient | ||
projectName: PetstoreClient | ||
podHomepage: https://github.com/openapitools/openapi-generator | ||
enumNameMappings: | ||
delivered: shipped |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
generatorName: swift6 | ||
outputDir: samples/client/petstore/swift6/deprecated | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-deprecated-fields.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/swift6 | ||
generateAliasAsModel: true | ||
additionalProperties: | ||
podAuthors: "" | ||
podSummary: PetstoreClient | ||
projectName: PetstoreClient | ||
podHomepage: https://github.com/openapitools/openapi-generator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
generatorName: swift6 | ||
outputDir: samples/client/petstore/swift6/frozenEnums | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/swift6 | ||
generateAliasAsModel: true | ||
additionalProperties: | ||
podAuthors: "" | ||
podSummary: PetstoreClient | ||
sortParamsByRequiredFlag: false | ||
enumUnknownDefaultCase: true | ||
projectName: PetstoreClient | ||
podHomepage: https://github.com/openapitools/openapi-generator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
generatorName: swift6 | ||
outputDir: samples/client/petstore/swift6/nonPublicApi | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/swift6 | ||
generateAliasAsModel: true | ||
additionalProperties: | ||
podAuthors: "" | ||
podSummary: PetstoreClient | ||
sortParamsByRequiredFlag: false | ||
nonPublicApi: true | ||
projectName: PetstoreClient | ||
podHomepage: https://github.com/openapitools/openapi-generator | ||
nameMappings: | ||
_type: underscoreType | ||
type_: typeWithUnderscore | ||
-type: dashType | ||
parameterNameMappings: | ||
_type: underscoreType | ||
type_: typeWithUnderscore | ||
-type: dashType | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
generatorName: swift6 | ||
outputDir: samples/client/petstore/swift6/objcCompatible | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/swift6 | ||
generateAliasAsModel: true | ||
additionalProperties: | ||
podAuthors: "" | ||
podSummary: PetstoreClient | ||
objcCompatible: true | ||
projectName: PetstoreClient | ||
podHomepage: https://github.com/openapitools/openapi-generator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
generatorName: swift6 | ||
outputDir: samples/client/petstore/swift6/oneOf | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/oneOf.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/swift6 | ||
generateAliasAsModel: true | ||
additionalProperties: | ||
podAuthors: "" | ||
podSummary: PetstoreClient | ||
projectName: PetstoreClient | ||
podHomepage: https://github.com/openapitools/openapi-generator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
generatorName: swift6 | ||
outputDir: samples/client/petstore/swift6/promisekitLibrary | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/swift6 | ||
generateAliasAsModel: true | ||
additionalProperties: | ||
responseAs: PromiseKit | ||
podAuthors: "" | ||
podSummary: PetstoreClient | ||
projectName: PetstoreClient | ||
podHomepage: https://github.com/openapitools/openapi-generator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
generatorName: swift6 | ||
outputDir: samples/client/petstore/swift6/readonlyProperties | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/swift6 | ||
generateAliasAsModel: true | ||
additionalProperties: | ||
podAuthors: "" | ||
podSummary: PetstoreClient | ||
readonlyProperties: true | ||
projectName: PetstoreClient | ||
podHomepage: https://github.com/openapitools/openapi-generator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
generatorName: swift6 | ||
outputDir: samples/client/petstore/swift6/resultLibrary | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/swift6 | ||
generateAliasAsModel: true | ||
additionalProperties: | ||
responseAs: Result | ||
podAuthors: "" | ||
podSummary: PetstoreClient | ||
projectName: PetstoreClient | ||
podHomepage: https://github.com/openapitools/openapi-generator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
generatorName: swift6 | ||
outputDir: samples/client/petstore/swift6/rxswiftLibrary | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/swift6 | ||
generateAliasAsModel: true | ||
additionalProperties: | ||
responseAs: RxSwift | ||
podAuthors: "" | ||
podSummary: PetstoreClient | ||
projectName: PetstoreClient | ||
podHomepage: https://github.com/openapitools/openapi-generator | ||
useBacktickEscapes: true | ||
generateModelAdditionalProperties: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
generatorName: swift6 | ||
outputDir: samples/client/petstore/swift6/urlsessionLibrary | ||
library: urlsession | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/swift6 | ||
generateAliasAsModel: true | ||
additionalProperties: | ||
podAuthors: "" | ||
podSummary: PetstoreClient | ||
projectName: PetstoreClient | ||
podHomepage: https://github.com/openapitools/openapi-generator | ||
useSPMFileStructure: true | ||
useClasses: true | ||
swiftUseApiNamespace: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
generatorName: swift6 | ||
outputDir: samples/client/petstore/swift6/validation | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/validation.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/swift6 | ||
generateAliasAsModel: true | ||
additionalProperties: | ||
podAuthors: "" | ||
podSummary: PetstoreClient | ||
projectName: PetstoreClient | ||
podHomepage: https://github.com/openapitools/openapi-generator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
generatorName: swift6 | ||
outputDir: samples/client/petstore/swift6/vaporLibrary | ||
library: vapor | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/swift6 | ||
generateAliasAsModel: true | ||
additionalProperties: | ||
projectName: PetstoreClient | ||
useSPMFileStructure: true | ||
useClasses: true | ||
useBacktickEscapes: true | ||
mapFileBinaryToData: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
generatorName: swift6 | ||
outputDir: samples/client/petstore/swift6/x-swift-hashable | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/swift6 | ||
generateAliasAsModel: true | ||
additionalProperties: | ||
podAuthors: "" | ||
podSummary: PetstoreClient | ||
projectName: PetstoreClient | ||
podHomepage: https://github.com/openapitools/openapi-generator | ||
hashableModels: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,15 @@ workflows: | |
#!/usr/bin/env bash | ||
sudo gem install cocoapods | ||
- [email protected]: | ||
title: Run Swift6 tests | ||
inputs: | ||
- content: | | ||
#!/usr/bin/env bash | ||
set -e | ||
./samples/client/petstore/swift6/swift6_test_all.sh | ||
- [email protected]: | ||
title: Run Swift5 tests | ||
inputs: | ||
|
@@ -39,4 +48,4 @@ workflows: | |
meta: | ||
bitrise.io: | ||
stack: osx-xcode-14.3.x-ventura | ||
stack: osx-xcode-16.0.x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.