diff --git a/modules/openapi-generator/src/main/resources/swift6/api.mustache b/modules/openapi-generator/src/main/resources/swift6/api.mustache index 1ea5b5607946..9eecf88a575c 100644 --- a/modules/openapi-generator/src/main/resources/swift6/api.mustache +++ b/modules/openapi-generator/src/main/resources/swift6/api.mustache @@ -32,7 +32,7 @@ extension {{projectName}}API { /** * enum for parameter {{paramName}} */ - {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} enum {{enumName}}_{{operationId}}: {{^isContainer}}{{{dataType}}}{{/isContainer}}{{#isContainer}}String{{/isContainer}}, CaseIterable{{#useVapor}}, Content{{/useVapor}} { + {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} enum {{enumName}}_{{operationId}}: {{^isContainer}}{{{dataType}}}{{/isContainer}}{{#isContainer}}String{{/isContainer}}, Sendable, CaseIterable{{#useVapor}}, Content{{/useVapor}} { {{^enumUnknownDefaultCase}} {{#allowableValues}} {{#enumVars}} diff --git a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift index 40e7ae87fbd1..5e8864e85ea5 100644 --- a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift @@ -411,7 +411,7 @@ open class FakeAPI { /** * enum for parameter enumHeaderStringArray */ - public enum EnumHeaderStringArray_testEnumParameters: String, CaseIterable { + public enum EnumHeaderStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -419,7 +419,7 @@ open class FakeAPI { /** * enum for parameter enumHeaderString */ - public enum EnumHeaderString_testEnumParameters: String, CaseIterable { + public enum EnumHeaderString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -428,7 +428,7 @@ open class FakeAPI { /** * enum for parameter enumQueryStringArray */ - public enum EnumQueryStringArray_testEnumParameters: String, CaseIterable { + public enum EnumQueryStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -436,7 +436,7 @@ open class FakeAPI { /** * enum for parameter enumQueryString */ - public enum EnumQueryString_testEnumParameters: String, CaseIterable { + public enum EnumQueryString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -445,7 +445,7 @@ open class FakeAPI { /** * enum for parameter enumQueryInteger */ - public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { + public enum EnumQueryInteger_testEnumParameters: Int, Sendable, CaseIterable { case _1 = 1 case number2 = -2 } @@ -453,7 +453,7 @@ open class FakeAPI { /** * enum for parameter enumQueryDouble */ - public enum EnumQueryDouble_testEnumParameters: Double, CaseIterable { + public enum EnumQueryDouble_testEnumParameters: Double, Sendable, CaseIterable { case _11 = 1.1 case number12 = -1.2 } @@ -461,7 +461,7 @@ open class FakeAPI { /** * enum for parameter enumFormStringArray */ - public enum EnumFormStringArray_testEnumParameters: String, CaseIterable { + public enum EnumFormStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -469,7 +469,7 @@ open class FakeAPI { /** * enum for parameter enumFormString */ - public enum EnumFormString_testEnumParameters: String, CaseIterable { + public enum EnumFormString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" diff --git a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/APIs/PetAPI.swift b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/APIs/PetAPI.swift index 5d03cf93ff4e..ffa55fa3bcf6 100644 --- a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/APIs/PetAPI.swift +++ b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/APIs/PetAPI.swift @@ -114,7 +114,7 @@ open class PetAPI { /** * enum for parameter status */ - public enum Status_findPetsByStatus: String, CaseIterable { + public enum Status_findPetsByStatus: String, Sendable, CaseIterable { case available = "available" case pending = "pending" case sold = "sold" diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/FakeAPI.swift b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/FakeAPI.swift index 8548c9d3e213..26525de39e26 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/FakeAPI.swift @@ -1268,7 +1268,7 @@ open class FakeAPI { /** * enum for parameter enumHeaderStringArray */ - public enum EnumHeaderStringArray_testEnumParameters: String, CaseIterable { + public enum EnumHeaderStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -1276,7 +1276,7 @@ open class FakeAPI { /** * enum for parameter enumHeaderString */ - public enum EnumHeaderString_testEnumParameters: String, CaseIterable { + public enum EnumHeaderString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -1285,7 +1285,7 @@ open class FakeAPI { /** * enum for parameter enumQueryStringArray */ - public enum EnumQueryStringArray_testEnumParameters: String, CaseIterable { + public enum EnumQueryStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -1293,7 +1293,7 @@ open class FakeAPI { /** * enum for parameter enumQueryString */ - public enum EnumQueryString_testEnumParameters: String, CaseIterable { + public enum EnumQueryString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -1302,7 +1302,7 @@ open class FakeAPI { /** * enum for parameter enumQueryInteger */ - public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { + public enum EnumQueryInteger_testEnumParameters: Int, Sendable, CaseIterable { case _1 = 1 case number2 = -2 } @@ -1310,7 +1310,7 @@ open class FakeAPI { /** * enum for parameter enumQueryDouble */ - public enum EnumQueryDouble_testEnumParameters: Double, CaseIterable { + public enum EnumQueryDouble_testEnumParameters: Double, Sendable, CaseIterable { case _11 = 1.1 case number12 = -1.2 } @@ -1318,7 +1318,7 @@ open class FakeAPI { /** * enum for parameter enumFormStringArray */ - public enum EnumFormStringArray_testEnumParameters: String, CaseIterable { + public enum EnumFormStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -1326,7 +1326,7 @@ open class FakeAPI { /** * enum for parameter enumFormString */ - public enum EnumFormString_testEnumParameters: String, CaseIterable { + public enum EnumFormString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/PetAPI.swift b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/PetAPI.swift index 61cd0b04916b..c194af440e45 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/PetAPI.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/PetAPI.swift @@ -330,7 +330,7 @@ open class PetAPI { /** * enum for parameter status */ - public enum Status_findPetsByStatus: String, CaseIterable { + public enum Status_findPetsByStatus: String, Sendable, CaseIterable { case available = "available" case pending = "pending" case sold = "sold" diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift index 064e28b98ca6..f6d85eaf0b53 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift @@ -355,7 +355,7 @@ open class FakeAPI { /** * enum for parameter enumHeaderStringArray */ - public enum EnumHeaderStringArray_testEnumParameters: String, CaseIterable { + public enum EnumHeaderStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -363,7 +363,7 @@ open class FakeAPI { /** * enum for parameter enumHeaderString */ - public enum EnumHeaderString_testEnumParameters: String, CaseIterable { + public enum EnumHeaderString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -372,7 +372,7 @@ open class FakeAPI { /** * enum for parameter enumQueryStringArray */ - public enum EnumQueryStringArray_testEnumParameters: String, CaseIterable { + public enum EnumQueryStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -380,7 +380,7 @@ open class FakeAPI { /** * enum for parameter enumQueryString */ - public enum EnumQueryString_testEnumParameters: String, CaseIterable { + public enum EnumQueryString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -389,7 +389,7 @@ open class FakeAPI { /** * enum for parameter enumQueryInteger */ - public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { + public enum EnumQueryInteger_testEnumParameters: Int, Sendable, CaseIterable { case _1 = 1 case number2 = -2 } @@ -397,7 +397,7 @@ open class FakeAPI { /** * enum for parameter enumQueryDouble */ - public enum EnumQueryDouble_testEnumParameters: Double, CaseIterable { + public enum EnumQueryDouble_testEnumParameters: Double, Sendable, CaseIterable { case _11 = 1.1 case number12 = -1.2 } @@ -405,7 +405,7 @@ open class FakeAPI { /** * enum for parameter enumFormStringArray */ - public enum EnumFormStringArray_testEnumParameters: String, CaseIterable { + public enum EnumFormStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -413,7 +413,7 @@ open class FakeAPI { /** * enum for parameter enumFormString */ - public enum EnumFormString_testEnumParameters: String, CaseIterable { + public enum EnumFormString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/PetAPI.swift b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/PetAPI.swift index 4cb91830b4dd..054a24e3abb5 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/PetAPI.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/PetAPI.swift @@ -100,7 +100,7 @@ open class PetAPI { /** * enum for parameter status */ - public enum Status_findPetsByStatus: String, CaseIterable { + public enum Status_findPetsByStatus: String, Sendable, CaseIterable { case available = "available" case pending = "pending" case sold = "sold" diff --git a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index 349d7fc51c25..47a6884488b1 100644 --- a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -518,7 +518,7 @@ open class FakeAPI { /** * enum for parameter enumHeaderStringArray */ - public enum EnumHeaderStringArray_testEnumParameters: String, CaseIterable { + public enum EnumHeaderStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -526,7 +526,7 @@ open class FakeAPI { /** * enum for parameter enumHeaderString */ - public enum EnumHeaderString_testEnumParameters: String, CaseIterable { + public enum EnumHeaderString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -535,7 +535,7 @@ open class FakeAPI { /** * enum for parameter enumQueryStringArray */ - public enum EnumQueryStringArray_testEnumParameters: String, CaseIterable { + public enum EnumQueryStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -543,7 +543,7 @@ open class FakeAPI { /** * enum for parameter enumQueryString */ - public enum EnumQueryString_testEnumParameters: String, CaseIterable { + public enum EnumQueryString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -552,7 +552,7 @@ open class FakeAPI { /** * enum for parameter enumQueryInteger */ - public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { + public enum EnumQueryInteger_testEnumParameters: Int, Sendable, CaseIterable { case _1 = 1 case number2 = -2 } @@ -560,7 +560,7 @@ open class FakeAPI { /** * enum for parameter enumQueryDouble */ - public enum EnumQueryDouble_testEnumParameters: Double, CaseIterable { + public enum EnumQueryDouble_testEnumParameters: Double, Sendable, CaseIterable { case _11 = 1.1 case number12 = -1.2 } @@ -568,7 +568,7 @@ open class FakeAPI { /** * enum for parameter enumFormStringArray */ - public enum EnumFormStringArray_testEnumParameters: String, CaseIterable { + public enum EnumFormStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -576,7 +576,7 @@ open class FakeAPI { /** * enum for parameter enumFormString */ - public enum EnumFormString_testEnumParameters: String, CaseIterable { + public enum EnumFormString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" diff --git a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift index 13facaf8462b..94ddf898e2b1 100644 --- a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift +++ b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift @@ -143,7 +143,7 @@ open class PetAPI { /** * enum for parameter status */ - public enum Status_findPetsByStatus: String, CaseIterable { + public enum Status_findPetsByStatus: String, Sendable, CaseIterable { case available = "available" case pending = "pending" case sold = "sold" diff --git a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/FakeAPI.swift b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/FakeAPI.swift index 72e1ba9b7665..bd77aa2f1159 100644 --- a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/FakeAPI.swift @@ -502,7 +502,7 @@ open class FakeAPI { /** * enum for parameter enumHeaderStringArray */ - public enum EnumHeaderStringArray_testEnumParameters: String, CaseIterable { + public enum EnumHeaderStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -510,7 +510,7 @@ open class FakeAPI { /** * enum for parameter enumHeaderString */ - public enum EnumHeaderString_testEnumParameters: String, CaseIterable { + public enum EnumHeaderString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -519,7 +519,7 @@ open class FakeAPI { /** * enum for parameter enumQueryStringArray */ - public enum EnumQueryStringArray_testEnumParameters: String, CaseIterable { + public enum EnumQueryStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -527,7 +527,7 @@ open class FakeAPI { /** * enum for parameter enumQueryString */ - public enum EnumQueryString_testEnumParameters: String, CaseIterable { + public enum EnumQueryString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -536,7 +536,7 @@ open class FakeAPI { /** * enum for parameter enumQueryInteger */ - public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { + public enum EnumQueryInteger_testEnumParameters: Int, Sendable, CaseIterable { case _1 = 1 case number2 = -2 } @@ -544,7 +544,7 @@ open class FakeAPI { /** * enum for parameter enumQueryDouble */ - public enum EnumQueryDouble_testEnumParameters: Double, CaseIterable { + public enum EnumQueryDouble_testEnumParameters: Double, Sendable, CaseIterable { case _11 = 1.1 case number12 = -1.2 } @@ -552,7 +552,7 @@ open class FakeAPI { /** * enum for parameter enumFormStringArray */ - public enum EnumFormStringArray_testEnumParameters: String, CaseIterable { + public enum EnumFormStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -560,7 +560,7 @@ open class FakeAPI { /** * enum for parameter enumFormString */ - public enum EnumFormString_testEnumParameters: String, CaseIterable { + public enum EnumFormString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" diff --git a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/PetAPI.swift b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/PetAPI.swift index 52e06462861a..c86a7ade2814 100644 --- a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/PetAPI.swift +++ b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/PetAPI.swift @@ -139,7 +139,7 @@ open class PetAPI { /** * enum for parameter status */ - public enum Status_findPetsByStatus: String, CaseIterable { + public enum Status_findPetsByStatus: String, Sendable, CaseIterable { case available = "available" case pending = "pending" case sold = "sold" diff --git a/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/FakeAPI.swift b/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/FakeAPI.swift index 9d3e3a4ade7e..6bb85e2d91fe 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/FakeAPI.swift @@ -393,7 +393,7 @@ open class FakeAPI { /** * enum for parameter enumHeaderStringArray */ - public enum EnumHeaderStringArray_testEnumParameters: String, CaseIterable { + public enum EnumHeaderStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -401,7 +401,7 @@ open class FakeAPI { /** * enum for parameter enumHeaderString */ - public enum EnumHeaderString_testEnumParameters: String, CaseIterable { + public enum EnumHeaderString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -410,7 +410,7 @@ open class FakeAPI { /** * enum for parameter enumQueryStringArray */ - public enum EnumQueryStringArray_testEnumParameters: String, CaseIterable { + public enum EnumQueryStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -418,7 +418,7 @@ open class FakeAPI { /** * enum for parameter enumQueryString */ - public enum EnumQueryString_testEnumParameters: String, CaseIterable { + public enum EnumQueryString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -427,7 +427,7 @@ open class FakeAPI { /** * enum for parameter enumQueryInteger */ - public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { + public enum EnumQueryInteger_testEnumParameters: Int, Sendable, CaseIterable { case _1 = 1 case number2 = -2 } @@ -435,7 +435,7 @@ open class FakeAPI { /** * enum for parameter enumQueryDouble */ - public enum EnumQueryDouble_testEnumParameters: Double, CaseIterable { + public enum EnumQueryDouble_testEnumParameters: Double, Sendable, CaseIterable { case _11 = 1.1 case number12 = -1.2 } @@ -443,7 +443,7 @@ open class FakeAPI { /** * enum for parameter enumFormStringArray */ - public enum EnumFormStringArray_testEnumParameters: String, CaseIterable { + public enum EnumFormStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -451,7 +451,7 @@ open class FakeAPI { /** * enum for parameter enumFormString */ - public enum EnumFormString_testEnumParameters: String, CaseIterable { + public enum EnumFormString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" diff --git a/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/PetAPI.swift b/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/PetAPI.swift index 79e51af03c8c..eca9439777b6 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/PetAPI.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/PetAPI.swift @@ -97,7 +97,7 @@ open class PetAPI { /** * enum for parameter status */ - public enum Status_findPetsByStatus: String, CaseIterable { + public enum Status_findPetsByStatus: String, Sendable, CaseIterable { case available = "available" case pending = "pending" case sold = "sold" diff --git a/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/APIs/FakeAPI.swift b/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/APIs/FakeAPI.swift index 10f0902bf485..76c1d55c50c1 100644 --- a/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/APIs/FakeAPI.swift @@ -411,7 +411,7 @@ import Foundation /** * enum for parameter enumHeaderStringArray */ - public enum EnumHeaderStringArray_testEnumParameters: String, CaseIterable { + public enum EnumHeaderStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -419,7 +419,7 @@ import Foundation /** * enum for parameter enumHeaderString */ - public enum EnumHeaderString_testEnumParameters: String, CaseIterable { + public enum EnumHeaderString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -428,7 +428,7 @@ import Foundation /** * enum for parameter enumQueryStringArray */ - public enum EnumQueryStringArray_testEnumParameters: String, CaseIterable { + public enum EnumQueryStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -436,7 +436,7 @@ import Foundation /** * enum for parameter enumQueryString */ - public enum EnumQueryString_testEnumParameters: String, CaseIterable { + public enum EnumQueryString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -445,7 +445,7 @@ import Foundation /** * enum for parameter enumQueryInteger */ - public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { + public enum EnumQueryInteger_testEnumParameters: Int, Sendable, CaseIterable { case _1 = 1 case number2 = -2 } @@ -453,7 +453,7 @@ import Foundation /** * enum for parameter enumQueryDouble */ - public enum EnumQueryDouble_testEnumParameters: Double, CaseIterable { + public enum EnumQueryDouble_testEnumParameters: Double, Sendable, CaseIterable { case _11 = 1.1 case number12 = -1.2 } @@ -461,7 +461,7 @@ import Foundation /** * enum for parameter enumFormStringArray */ - public enum EnumFormStringArray_testEnumParameters: String, CaseIterable { + public enum EnumFormStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -469,7 +469,7 @@ import Foundation /** * enum for parameter enumFormString */ - public enum EnumFormString_testEnumParameters: String, CaseIterable { + public enum EnumFormString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" diff --git a/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/APIs/PetAPI.swift b/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/APIs/PetAPI.swift index 8aab10afd44e..4229f71788aa 100644 --- a/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/APIs/PetAPI.swift +++ b/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/APIs/PetAPI.swift @@ -114,7 +114,7 @@ import Foundation /** * enum for parameter status */ - public enum Status_findPetsByStatus: String, CaseIterable { + public enum Status_findPetsByStatus: String, Sendable, CaseIterable { case available = "available" case pending = "pending" case sold = "sold" diff --git a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index 5d41eda71d2b..0d4dc2f7f6b1 100644 --- a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -420,7 +420,7 @@ open class FakeAPI { /** * enum for parameter enumHeaderStringArray */ - public enum EnumHeaderStringArray_testEnumParameters: String, CaseIterable { + public enum EnumHeaderStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -428,7 +428,7 @@ open class FakeAPI { /** * enum for parameter enumHeaderString */ - public enum EnumHeaderString_testEnumParameters: String, CaseIterable { + public enum EnumHeaderString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -437,7 +437,7 @@ open class FakeAPI { /** * enum for parameter enumQueryStringArray */ - public enum EnumQueryStringArray_testEnumParameters: String, CaseIterable { + public enum EnumQueryStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -445,7 +445,7 @@ open class FakeAPI { /** * enum for parameter enumQueryString */ - public enum EnumQueryString_testEnumParameters: String, CaseIterable { + public enum EnumQueryString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -454,7 +454,7 @@ open class FakeAPI { /** * enum for parameter enumQueryInteger */ - public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { + public enum EnumQueryInteger_testEnumParameters: Int, Sendable, CaseIterable { case _1 = 1 case number2 = -2 } @@ -462,7 +462,7 @@ open class FakeAPI { /** * enum for parameter enumQueryDouble */ - public enum EnumQueryDouble_testEnumParameters: Double, CaseIterable { + public enum EnumQueryDouble_testEnumParameters: Double, Sendable, CaseIterable { case _11 = 1.1 case number12 = -1.2 } @@ -470,7 +470,7 @@ open class FakeAPI { /** * enum for parameter enumFormStringArray */ - public enum EnumFormStringArray_testEnumParameters: String, CaseIterable { + public enum EnumFormStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -478,7 +478,7 @@ open class FakeAPI { /** * enum for parameter enumFormString */ - public enum EnumFormString_testEnumParameters: String, CaseIterable { + public enum EnumFormString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" diff --git a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift index 49c2cb23b53e..56af1eb1ae14 100644 --- a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift +++ b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift @@ -117,7 +117,7 @@ open class PetAPI { /** * enum for parameter status */ - public enum Status_findPetsByStatus: String, CaseIterable { + public enum Status_findPetsByStatus: String, Sendable, CaseIterable { case available = "available" case pending = "pending" case sold = "sold" diff --git a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index a3a036328a7a..101c812e73ec 100644 --- a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -411,7 +411,7 @@ internal class FakeAPI { /** * enum for parameter enumHeaderStringArray */ - internal enum EnumHeaderStringArray_testEnumParameters: String, CaseIterable { + internal enum EnumHeaderStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -419,7 +419,7 @@ internal class FakeAPI { /** * enum for parameter enumHeaderString */ - internal enum EnumHeaderString_testEnumParameters: String, CaseIterable { + internal enum EnumHeaderString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -428,7 +428,7 @@ internal class FakeAPI { /** * enum for parameter enumQueryStringArray */ - internal enum EnumQueryStringArray_testEnumParameters: String, CaseIterable { + internal enum EnumQueryStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -436,7 +436,7 @@ internal class FakeAPI { /** * enum for parameter enumQueryString */ - internal enum EnumQueryString_testEnumParameters: String, CaseIterable { + internal enum EnumQueryString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -445,7 +445,7 @@ internal class FakeAPI { /** * enum for parameter enumQueryInteger */ - internal enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { + internal enum EnumQueryInteger_testEnumParameters: Int, Sendable, CaseIterable { case _1 = 1 case number2 = -2 } @@ -453,7 +453,7 @@ internal class FakeAPI { /** * enum for parameter enumQueryDouble */ - internal enum EnumQueryDouble_testEnumParameters: Double, CaseIterable { + internal enum EnumQueryDouble_testEnumParameters: Double, Sendable, CaseIterable { case _11 = 1.1 case number12 = -1.2 } @@ -461,7 +461,7 @@ internal class FakeAPI { /** * enum for parameter enumFormStringArray */ - internal enum EnumFormStringArray_testEnumParameters: String, CaseIterable { + internal enum EnumFormStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -469,7 +469,7 @@ internal class FakeAPI { /** * enum for parameter enumFormString */ - internal enum EnumFormString_testEnumParameters: String, CaseIterable { + internal enum EnumFormString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" diff --git a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift index 6f3d13022e78..d0049c26822d 100644 --- a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift +++ b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift @@ -114,7 +114,7 @@ internal class PetAPI { /** * enum for parameter status */ - internal enum Status_findPetsByStatus: String, CaseIterable { + internal enum Status_findPetsByStatus: String, Sendable, CaseIterable { case available = "available" case pending = "pending" case sold = "sold" diff --git a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index 6e0ec88f2015..60e8e223ad06 100644 --- a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -460,7 +460,7 @@ open class FakeAPI { /** * enum for parameter enumHeaderStringArray */ - public enum EnumHeaderStringArray_testEnumParameters: String, CaseIterable { + public enum EnumHeaderStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -468,7 +468,7 @@ open class FakeAPI { /** * enum for parameter enumHeaderString */ - public enum EnumHeaderString_testEnumParameters: String, CaseIterable { + public enum EnumHeaderString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -477,7 +477,7 @@ open class FakeAPI { /** * enum for parameter enumQueryStringArray */ - public enum EnumQueryStringArray_testEnumParameters: String, CaseIterable { + public enum EnumQueryStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -485,7 +485,7 @@ open class FakeAPI { /** * enum for parameter enumQueryString */ - public enum EnumQueryString_testEnumParameters: String, CaseIterable { + public enum EnumQueryString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -494,7 +494,7 @@ open class FakeAPI { /** * enum for parameter enumQueryInteger */ - public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { + public enum EnumQueryInteger_testEnumParameters: Int, Sendable, CaseIterable { case _1 = 1 case number2 = -2 } @@ -502,7 +502,7 @@ open class FakeAPI { /** * enum for parameter enumQueryDouble */ - public enum EnumQueryDouble_testEnumParameters: Double, CaseIterable { + public enum EnumQueryDouble_testEnumParameters: Double, Sendable, CaseIterable { case _11 = 1.1 case number12 = -1.2 } @@ -510,7 +510,7 @@ open class FakeAPI { /** * enum for parameter enumFormStringArray */ - public enum EnumFormStringArray_testEnumParameters: String, CaseIterable { + public enum EnumFormStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -518,7 +518,7 @@ open class FakeAPI { /** * enum for parameter enumFormString */ - public enum EnumFormString_testEnumParameters: String, CaseIterable { + public enum EnumFormString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" diff --git a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift index 50b53724c797..9212294bd2ba 100644 --- a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift +++ b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift @@ -127,7 +127,7 @@ open class PetAPI { /** * enum for parameter status */ - public enum Status_findPetsByStatus: String, CaseIterable { + public enum Status_findPetsByStatus: String, Sendable, CaseIterable { case available = "available" case pending = "pending" case sold = "sold" diff --git a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift index e4091ba52a42..f580b54f406c 100644 --- a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift @@ -414,7 +414,7 @@ open class FakeAPI { /** * enum for parameter enumHeaderStringArray */ - public enum EnumHeaderStringArray_testEnumParameters: String, CaseIterable { + public enum EnumHeaderStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -422,7 +422,7 @@ open class FakeAPI { /** * enum for parameter enumHeaderString */ - public enum EnumHeaderString_testEnumParameters: String, CaseIterable { + public enum EnumHeaderString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -431,7 +431,7 @@ open class FakeAPI { /** * enum for parameter enumQueryStringArray */ - public enum EnumQueryStringArray_testEnumParameters: String, CaseIterable { + public enum EnumQueryStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -439,7 +439,7 @@ open class FakeAPI { /** * enum for parameter enumQueryString */ - public enum EnumQueryString_testEnumParameters: String, CaseIterable { + public enum EnumQueryString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -448,7 +448,7 @@ open class FakeAPI { /** * enum for parameter enumQueryInteger */ - public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { + public enum EnumQueryInteger_testEnumParameters: Int, Sendable, CaseIterable { case _1 = 1 case number2 = -2 } @@ -456,7 +456,7 @@ open class FakeAPI { /** * enum for parameter enumQueryDouble */ - public enum EnumQueryDouble_testEnumParameters: Double, CaseIterable { + public enum EnumQueryDouble_testEnumParameters: Double, Sendable, CaseIterable { case _11 = 1.1 case number12 = -1.2 } @@ -464,7 +464,7 @@ open class FakeAPI { /** * enum for parameter enumFormStringArray */ - public enum EnumFormStringArray_testEnumParameters: String, CaseIterable { + public enum EnumFormStringArray_testEnumParameters: String, Sendable, CaseIterable { case greaterThan = ">" case dollar = "$" } @@ -472,7 +472,7 @@ open class FakeAPI { /** * enum for parameter enumFormString */ - public enum EnumFormString_testEnumParameters: String, CaseIterable { + public enum EnumFormString_testEnumParameters: String, Sendable, CaseIterable { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" diff --git a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/APIs/PetAPI.swift b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/APIs/PetAPI.swift index c353281f7b4b..977022cc096a 100644 --- a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/APIs/PetAPI.swift +++ b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/APIs/PetAPI.swift @@ -117,7 +117,7 @@ open class PetAPI { /** * enum for parameter status */ - public enum Status_findPetsByStatus: String, CaseIterable { + public enum Status_findPetsByStatus: String, Sendable, CaseIterable { case available = "available" case pending = "pending" case sold = "sold" diff --git a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift index 66af99ea7215..c51e0c815762 100644 --- a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift @@ -499,7 +499,7 @@ open class FakeAPI { /** * enum for parameter enumHeaderStringArray */ - public enum EnumHeaderStringArray_testEnumParameters: String, CaseIterable, Content { + public enum EnumHeaderStringArray_testEnumParameters: String, Sendable, CaseIterable, Content { case greaterThan = ">" case dollar = "$" } @@ -507,7 +507,7 @@ open class FakeAPI { /** * enum for parameter enumHeaderString */ - public enum EnumHeaderString_testEnumParameters: String, CaseIterable, Content { + public enum EnumHeaderString_testEnumParameters: String, Sendable, CaseIterable, Content { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -516,7 +516,7 @@ open class FakeAPI { /** * enum for parameter enumQueryStringArray */ - public enum EnumQueryStringArray_testEnumParameters: String, CaseIterable, Content { + public enum EnumQueryStringArray_testEnumParameters: String, Sendable, CaseIterable, Content { case greaterThan = ">" case dollar = "$" } @@ -524,7 +524,7 @@ open class FakeAPI { /** * enum for parameter enumQueryString */ - public enum EnumQueryString_testEnumParameters: String, CaseIterable, Content { + public enum EnumQueryString_testEnumParameters: String, Sendable, CaseIterable, Content { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" @@ -533,7 +533,7 @@ open class FakeAPI { /** * enum for parameter enumQueryInteger */ - public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable, Content { + public enum EnumQueryInteger_testEnumParameters: Int, Sendable, CaseIterable, Content { case _1 = 1 case number2 = -2 } @@ -541,7 +541,7 @@ open class FakeAPI { /** * enum for parameter enumQueryDouble */ - public enum EnumQueryDouble_testEnumParameters: Double, CaseIterable, Content { + public enum EnumQueryDouble_testEnumParameters: Double, Sendable, CaseIterable, Content { case _11 = 1.1 case number12 = -1.2 } @@ -549,7 +549,7 @@ open class FakeAPI { /** * enum for parameter enumFormStringArray */ - public enum EnumFormStringArray_testEnumParameters: String, CaseIterable, Content { + public enum EnumFormStringArray_testEnumParameters: String, Sendable, CaseIterable, Content { case greaterThan = ">" case dollar = "$" } @@ -557,7 +557,7 @@ open class FakeAPI { /** * enum for parameter enumFormString */ - public enum EnumFormString_testEnumParameters: String, CaseIterable, Content { + public enum EnumFormString_testEnumParameters: String, Sendable, CaseIterable, Content { case abc = "_abc" case efg = "-efg" case xyz = "(xyz)" diff --git a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/APIs/PetAPI.swift b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/APIs/PetAPI.swift index 80026c35fe9e..e93e73fcb531 100644 --- a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/APIs/PetAPI.swift +++ b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/APIs/PetAPI.swift @@ -129,7 +129,7 @@ open class PetAPI { /** * enum for parameter status */ - public enum Status_findPetsByStatus: String, CaseIterable, Content { + public enum Status_findPetsByStatus: String, Sendable, CaseIterable, Content { case available = "available" case pending = "pending" case sold = "sold"