diff --git a/modules/openapi-generator/src/main/resources/swift6/APIs.mustache b/modules/openapi-generator/src/main/resources/swift6/APIs.mustache index 22626aa8dc3b..e4ad3216b9ee 100644 --- a/modules/openapi-generator/src/main/resources/swift6/APIs.mustache +++ b/modules/openapi-generator/src/main/resources/swift6/APIs.mustache @@ -121,20 +121,17 @@ import Alamofire{{/useAlamofire}} {{#useAsyncAwait}} #if compiler(>=6.2) @concurrent - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) @discardableResult {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} func execute() async throws(ErrorResponse) -> Response { try await _execute() } #else - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) @discardableResult {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} func execute() async throws(ErrorResponse) -> Response { try await _execute() } #endif - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) @discardableResult private func _execute() async throws(ErrorResponse) -> Response { do { diff --git a/modules/openapi-generator/src/main/resources/swift6/Package.swift.mustache b/modules/openapi-generator/src/main/resources/swift6/Package.swift.mustache index 000f495b48f0..f91c9dfaa274 100644 --- a/modules/openapi-generator/src/main/resources/swift6/Package.swift.mustache +++ b/modules/openapi-generator/src/main/resources/swift6/Package.swift.mustache @@ -9,10 +9,10 @@ let package = Package( .macOS(.v10_15), {{/useVapor}} {{^useVapor}} - .iOS(.v12), - .macOS(.v10_13), - .tvOS(.v12), - .watchOS(.v4), + .iOS(.v13), + .macOS(.v10_15), + .tvOS(.v13), + .watchOS(.v6), {{/useVapor}} ], products: [ diff --git a/modules/openapi-generator/src/main/resources/swift6/Podspec.mustache b/modules/openapi-generator/src/main/resources/swift6/Podspec.mustache index fc7ff92f285e..70b97e74c950 100644 --- a/modules/openapi-generator/src/main/resources/swift6/Podspec.mustache +++ b/modules/openapi-generator/src/main/resources/swift6/Podspec.mustache @@ -1,10 +1,10 @@ Pod::Spec.new do |s| s.name = '{{projectName}}'{{#projectDescription}} s.summary = '{{.}}'{{/projectDescription}} - s.ios.deployment_target = '12.0' - s.osx.deployment_target = '10.13' - s.tvos.deployment_target = '12.0' - s.watchos.deployment_target = '4.0' + s.ios.deployment_target = '13.0' + s.osx.deployment_target = '10.15' + s.tvos.deployment_target = '13.0' + s.watchos.deployment_target = '6.0' s.version = '{{podVersion}}{{^podVersion}}{{#apiInfo}}{{version}}{{/apiInfo}}{{^apiInfo}}}0.0.1{{/apiInfo}}{{/podVersion}}' s.source = {{#podSource}}{{& podSource}}{{/podSource}}{{^podSource}}{ :git => 'git@github.com:OpenAPITools/openapi-generator.git', :tag => 'v{{#apiInfo}}{{version}}{{/apiInfo}}{{^apiInfo}}}0.0.1{{/apiInfo}}' }{{/podSource}} {{#podAuthors}} diff --git a/modules/openapi-generator/src/main/resources/swift6/api.mustache b/modules/openapi-generator/src/main/resources/swift6/api.mustache index 8242210a5a15..3e1dd78c65c1 100644 --- a/modules/openapi-generator/src/main/resources/swift6/api.mustache +++ b/modules/openapi-generator/src/main/resources/swift6/api.mustache @@ -165,7 +165,6 @@ extension {{projectName}}API { {{#isDeprecated}} @available(*, deprecated, message: "This operation is deprecated.") {{/isDeprecated}} - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} {{#apiStaticMethod}}class {{/apiStaticMethod}}func {{operationId}}({{#allParams}}{{paramName}}: {{#isEnum}}{{#isContainer}}[{{enumName}}_{{operationId}}]{{/isContainer}}{{^isContainer}}{{enumName}}_{{operationId}}{{/isContainer}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{^required}}? = nil{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#apiStaticMethod}}{{#hasParams}}, {{/hasParams}}apiConfiguration: {{projectName}}APIConfiguration = {{projectName}}APIConfiguration.shared{{/apiStaticMethod}}) -> AnyPublisher<{{{returnType}}}{{#returnType}}{{#isResponseOptional}}?{{/isResponseOptional}}{{/returnType}}{{^returnType}}Void{{/returnType}}, Error> { let requestBuilder = {{operationId}}WithRequestBuilder({{#allParams}}{{paramName}}: {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#apiStaticMethod}}{{#hasParams}}, {{/hasParams}}apiConfiguration: apiConfiguration{{/apiStaticMethod}}) let requestTask = requestBuilder.requestTask @@ -210,7 +209,6 @@ extension {{projectName}}API { {{#isDeprecated}} @available(*, deprecated, message: "This operation is deprecated.") {{/isDeprecated}} - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} {{#apiStaticMethod}}class {{/apiStaticMethod}}func {{operationId}}({{#allParams}}{{paramName}}: {{#isEnum}}{{#isContainer}}[{{enumName}}_{{operationId}}]{{/isContainer}}{{^isContainer}}{{enumName}}_{{operationId}}{{/isContainer}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{^required}}? = nil{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#apiStaticMethod}}{{#hasParams}}, {{/hasParams}}apiConfiguration: {{projectName}}APIConfiguration = {{projectName}}APIConfiguration.shared{{/apiStaticMethod}}) async throws(ErrorResponse){{#returnType}} -> {{{returnType}}}{{#returnType}}{{#isResponseOptional}}?{{/isResponseOptional}}{{/returnType}}{{/returnType}} { return try await {{operationId}}WithRequestBuilder({{#allParams}}{{paramName}}: {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#apiStaticMethod}}{{#hasParams}}, {{/hasParams}}apiConfiguration: apiConfiguration{{/apiStaticMethod}}).execute().body } diff --git a/modules/openapi-generator/src/main/resources/swift6/model.mustache b/modules/openapi-generator/src/main/resources/swift6/model.mustache index e9d561310dc8..8f3127a0bdaf 100644 --- a/modules/openapi-generator/src/main/resources/swift6/model.mustache +++ b/modules/openapi-generator/src/main/resources/swift6/model.mustache @@ -25,6 +25,5 @@ extension {{projectName}}API { {{#swiftUseApiNamespace}} } {{/swiftUseApiNamespace}}{{#models}}{{#model}}{{#vendorExtensions.x-swift-identifiable}} -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension {{#swiftUseApiNamespace}}{{projectName}}API.{{/swiftUseApiNamespace}}{{{classname}}}: Identifiable {} {{/vendorExtensions.x-swift-identifiable}}{{/model}}{{/models}} \ No newline at end of file diff --git a/samples/client/petstore/swift6/alamofireLibrary/Package.swift b/samples/client/petstore/swift6/alamofireLibrary/Package.swift index 18f505a86cf9..14caee878209 100644 --- a/samples/client/petstore/swift6/alamofireLibrary/Package.swift +++ b/samples/client/petstore/swift6/alamofireLibrary/Package.swift @@ -5,10 +5,10 @@ import PackageDescription let package = Package( name: "PetstoreClient", platforms: [ - .iOS(.v12), - .macOS(.v10_13), - .tvOS(.v12), - .watchOS(.v4), + .iOS(.v13), + .macOS(.v10_15), + .tvOS(.v13), + .watchOS(.v6), ], products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. diff --git a/samples/client/petstore/swift6/alamofireLibrary/PetstoreClient.podspec b/samples/client/petstore/swift6/alamofireLibrary/PetstoreClient.podspec index 71c84bc1ffc7..2009ff08bb92 100644 --- a/samples/client/petstore/swift6/alamofireLibrary/PetstoreClient.podspec +++ b/samples/client/petstore/swift6/alamofireLibrary/PetstoreClient.podspec @@ -1,9 +1,9 @@ Pod::Spec.new do |s| s.name = 'PetstoreClient' - s.ios.deployment_target = '12.0' - s.osx.deployment_target = '10.13' - s.tvos.deployment_target = '12.0' - s.watchos.deployment_target = '4.0' + s.ios.deployment_target = '13.0' + s.osx.deployment_target = '10.15' + s.tvos.deployment_target = '13.0' + s.watchos.deployment_target = '6.0' s.version = '1.0.0' s.source = { :git => 'git@github.com:OpenAPITools/openapi-generator.git', :tag => 'v1.0.0' } s.authors = '' diff --git a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Category.swift b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Category.swift index 64f4cbd29125..1d65d00009e1 100644 --- a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Category.swift +++ b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Category.swift @@ -32,5 +32,4 @@ public struct Category: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Category: Identifiable {} diff --git a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Order.swift b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Order.swift index bf2137d27a16..79047bcea53c 100644 --- a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Order.swift +++ b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Order.swift @@ -54,5 +54,4 @@ public struct Order: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Order: Identifiable {} diff --git a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Pet.swift b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Pet.swift index 5e9084ec2ef2..90542764c14a 100644 --- a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Pet.swift +++ b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Pet.swift @@ -57,5 +57,4 @@ public struct Pet: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Pet: Identifiable {} diff --git a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Tag.swift b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Tag.swift index 510c09ab0201..98c4ba422c17 100644 --- a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Tag.swift +++ b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Tag.swift @@ -32,5 +32,4 @@ public struct Tag: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Tag: Identifiable {} diff --git a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/User.swift b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/User.swift index f012dafe19c6..2d7e6d82b18a 100644 --- a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/User.swift +++ b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/User.swift @@ -57,5 +57,4 @@ public struct User: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension User: Identifiable {} diff --git a/samples/client/petstore/swift6/alamofireLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj b/samples/client/petstore/swift6/alamofireLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj index 20b9f39957cb..987b5ced9dab 100644 --- a/samples/client/petstore/swift6/alamofireLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj +++ b/samples/client/petstore/swift6/alamofireLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj @@ -326,7 +326,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -377,7 +377,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; @@ -392,7 +392,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = SwaggerClient/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -407,7 +407,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = SwaggerClient/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -422,7 +422,7 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; INFOPLIST_FILE = SwaggerClientTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -439,7 +439,7 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; INFOPLIST_FILE = SwaggerClientTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/Package.swift b/samples/client/petstore/swift6/apiNonStaticMethod/Package.swift index 58fb81d22bd1..53575c9c1efa 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Package.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Package.swift @@ -5,10 +5,10 @@ import PackageDescription let package = Package( name: "PetstoreClient", platforms: [ - .iOS(.v12), - .macOS(.v10_13), - .tvOS(.v12), - .watchOS(.v4), + .iOS(.v13), + .macOS(.v10_15), + .tvOS(.v13), + .watchOS(.v6), ], products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/PetstoreClient.podspec b/samples/client/petstore/swift6/apiNonStaticMethod/PetstoreClient.podspec index 5694a8439b48..f89cfddbadd6 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/PetstoreClient.podspec +++ b/samples/client/petstore/swift6/apiNonStaticMethod/PetstoreClient.podspec @@ -1,9 +1,9 @@ Pod::Spec.new do |s| s.name = 'PetstoreClient' - s.ios.deployment_target = '12.0' - s.osx.deployment_target = '10.13' - s.tvos.deployment_target = '12.0' - s.watchos.deployment_target = '4.0' + s.ios.deployment_target = '13.0' + s.osx.deployment_target = '10.15' + s.tvos.deployment_target = '13.0' + s.watchos.deployment_target = '6.0' s.version = '1.0.0' s.source = { :git => 'git@github.com:OpenAPITools/openapi-generator.git', :tag => 'v1.0.0' } s.authors = '' diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/AnotherFakeAPI.swift b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/AnotherFakeAPI.swift index fa30c04d2fdd..30e7726f628b 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/AnotherFakeAPI.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/AnotherFakeAPI.swift @@ -87,7 +87,6 @@ open class AnotherFakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func call123testSpecialTags(body: Client) -> AnyPublisher { let requestBuilder = call123testSpecialTagsWithRequestBuilder(body: body) let requestTask = requestBuilder.requestTask @@ -117,7 +116,6 @@ open class AnotherFakeAPI { - parameter body: (body) client model - returns: Client */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func call123testSpecialTags(body: Client) async throws(ErrorResponse) -> Client { return try await call123testSpecialTagsWithRequestBuilder(body: body).execute().body } 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 f46c42cd9edd..ed977b254849 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/FakeAPI.swift @@ -83,7 +83,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func fakeOuterBooleanSerialize(body: Bool? = nil) -> AnyPublisher { let requestBuilder = fakeOuterBooleanSerializeWithRequestBuilder(body: body) let requestTask = requestBuilder.requestTask @@ -112,7 +111,6 @@ open class FakeAPI { - parameter body: (body) Input boolean as post body (optional) - returns: Bool */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func fakeOuterBooleanSerialize(body: Bool? = nil) async throws(ErrorResponse) -> Bool { return try await fakeOuterBooleanSerializeWithRequestBuilder(body: body).execute().body } @@ -223,7 +221,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func fakeOuterCompositeSerialize(body: OuterComposite? = nil) -> AnyPublisher { let requestBuilder = fakeOuterCompositeSerializeWithRequestBuilder(body: body) let requestTask = requestBuilder.requestTask @@ -252,7 +249,6 @@ open class FakeAPI { - parameter body: (body) Input composite as post body (optional) - returns: OuterComposite */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func fakeOuterCompositeSerialize(body: OuterComposite? = nil) async throws(ErrorResponse) -> OuterComposite { return try await fakeOuterCompositeSerializeWithRequestBuilder(body: body).execute().body } @@ -363,7 +359,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func fakeOuterNumberSerialize(body: Double? = nil) -> AnyPublisher { let requestBuilder = fakeOuterNumberSerializeWithRequestBuilder(body: body) let requestTask = requestBuilder.requestTask @@ -392,7 +387,6 @@ open class FakeAPI { - parameter body: (body) Input number as post body (optional) - returns: Double */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func fakeOuterNumberSerialize(body: Double? = nil) async throws(ErrorResponse) -> Double { return try await fakeOuterNumberSerializeWithRequestBuilder(body: body).execute().body } @@ -503,7 +497,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func fakeOuterStringSerialize(body: String? = nil) -> AnyPublisher { let requestBuilder = fakeOuterStringSerializeWithRequestBuilder(body: body) let requestTask = requestBuilder.requestTask @@ -532,7 +525,6 @@ open class FakeAPI { - parameter body: (body) Input string as post body (optional) - returns: String */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func fakeOuterStringSerialize(body: String? = nil) async throws(ErrorResponse) -> String { return try await fakeOuterStringSerializeWithRequestBuilder(body: body).execute().body } @@ -643,7 +635,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func testBodyWithFileSchema(body: FileSchemaTestClass) -> AnyPublisher { let requestBuilder = testBodyWithFileSchemaWithRequestBuilder(body: body) let requestTask = requestBuilder.requestTask @@ -672,7 +663,6 @@ open class FakeAPI { - parameter body: (body) - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func testBodyWithFileSchema(body: FileSchemaTestClass) async throws(ErrorResponse) { return try await testBodyWithFileSchemaWithRequestBuilder(body: body).execute().body } @@ -787,7 +777,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func testBodyWithQueryParams(query: String, body: User) -> AnyPublisher { let requestBuilder = testBodyWithQueryParamsWithRequestBuilder(query: query, body: body) let requestTask = requestBuilder.requestTask @@ -817,7 +806,6 @@ open class FakeAPI { - parameter body: (body) - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func testBodyWithQueryParams(query: String, body: User) async throws(ErrorResponse) { return try await testBodyWithQueryParamsWithRequestBuilder(query: query, body: body).execute().body } @@ -936,7 +924,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func testClientModel(body: Client) -> AnyPublisher { let requestBuilder = testClientModelWithRequestBuilder(body: body) let requestTask = requestBuilder.requestTask @@ -966,7 +953,6 @@ open class FakeAPI { - parameter body: (body) client model - returns: Client */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func testClientModel(body: Client) async throws(ErrorResponse) -> Client { return try await testClientModelWithRequestBuilder(body: body).execute().body } @@ -1135,7 +1121,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func testEndpointParameters(number: Double, double: Double, patternWithoutDelimiter: String, byte: Data, integer: Int? = nil, int32: Int? = nil, int64: Int64? = nil, float: Float? = nil, string: String? = nil, binary: Data? = nil, date: Date? = nil, dateTime: Date? = nil, password: String? = nil, callback: String? = nil) -> AnyPublisher { let requestBuilder = testEndpointParametersWithRequestBuilder(number: number, double: double, patternWithoutDelimiter: patternWithoutDelimiter, byte: byte, integer: integer, int32: int32, int64: int64, float: float, string: string, binary: binary, date: date, dateTime: dateTime, password: password, callback: callback) let requestTask = requestBuilder.requestTask @@ -1178,7 +1163,6 @@ open class FakeAPI { - parameter callback: (form) None (optional) - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func testEndpointParameters(number: Double, double: Double, patternWithoutDelimiter: String, byte: Data, integer: Int? = nil, int32: Int? = nil, int64: Int64? = nil, float: Float? = nil, string: String? = nil, binary: Data? = nil, date: Date? = nil, dateTime: Date? = nil, password: String? = nil, callback: String? = nil) async throws(ErrorResponse) { return try await testEndpointParametersWithRequestBuilder(number: number, double: double, patternWithoutDelimiter: patternWithoutDelimiter, byte: byte, integer: integer, int32: int32, int64: int64, float: float, string: string, binary: binary, date: date, dateTime: dateTime, password: password, callback: callback).execute().body } @@ -1437,7 +1421,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func testEnumParameters(enumHeaderStringArray: [EnumHeaderStringArray_testEnumParameters]? = nil, enumHeaderString: EnumHeaderString_testEnumParameters? = nil, enumQueryStringArray: [EnumQueryStringArray_testEnumParameters]? = nil, enumQueryString: EnumQueryString_testEnumParameters? = nil, enumQueryInteger: EnumQueryInteger_testEnumParameters? = nil, enumQueryDouble: EnumQueryDouble_testEnumParameters? = nil, enumFormStringArray: [EnumFormStringArray_testEnumParameters]? = nil, enumFormString: EnumFormString_testEnumParameters? = nil) -> AnyPublisher { let requestBuilder = testEnumParametersWithRequestBuilder(enumHeaderStringArray: enumHeaderStringArray, enumHeaderString: enumHeaderString, enumQueryStringArray: enumQueryStringArray, enumQueryString: enumQueryString, enumQueryInteger: enumQueryInteger, enumQueryDouble: enumQueryDouble, enumFormStringArray: enumFormStringArray, enumFormString: enumFormString) let requestTask = requestBuilder.requestTask @@ -1474,7 +1457,6 @@ open class FakeAPI { - parameter enumFormString: (form) Form parameter enum test (string) (optional, default to .efg) - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func testEnumParameters(enumHeaderStringArray: [EnumHeaderStringArray_testEnumParameters]? = nil, enumHeaderString: EnumHeaderString_testEnumParameters? = nil, enumQueryStringArray: [EnumQueryStringArray_testEnumParameters]? = nil, enumQueryString: EnumQueryString_testEnumParameters? = nil, enumQueryInteger: EnumQueryInteger_testEnumParameters? = nil, enumQueryDouble: EnumQueryDouble_testEnumParameters? = nil, enumFormStringArray: [EnumFormStringArray_testEnumParameters]? = nil, enumFormString: EnumFormString_testEnumParameters? = nil) async throws(ErrorResponse) { return try await testEnumParametersWithRequestBuilder(enumHeaderStringArray: enumHeaderStringArray, enumHeaderString: enumHeaderString, enumQueryStringArray: enumQueryStringArray, enumQueryString: enumQueryString, enumQueryInteger: enumQueryInteger, enumQueryDouble: enumQueryDouble, enumFormStringArray: enumFormStringArray, enumFormString: enumFormString).execute().body } @@ -1639,7 +1621,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func testGroupParameters(requiredStringGroup: Int, requiredBooleanGroup: Bool, requiredInt64Group: Int64, stringGroup: Int? = nil, booleanGroup: Bool? = nil, int64Group: Int64? = nil) -> AnyPublisher { let requestBuilder = testGroupParametersWithRequestBuilder(requiredStringGroup: requiredStringGroup, requiredBooleanGroup: requiredBooleanGroup, requiredInt64Group: requiredInt64Group, stringGroup: stringGroup, booleanGroup: booleanGroup, int64Group: int64Group) let requestTask = requestBuilder.requestTask @@ -1674,7 +1655,6 @@ open class FakeAPI { - parameter int64Group: (query) Integer in group parameters (optional) - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func testGroupParameters(requiredStringGroup: Int, requiredBooleanGroup: Bool, requiredInt64Group: Int64, stringGroup: Int? = nil, booleanGroup: Bool? = nil, int64Group: Int64? = nil) async throws(ErrorResponse) { return try await testGroupParametersWithRequestBuilder(requiredStringGroup: requiredStringGroup, requiredBooleanGroup: requiredBooleanGroup, requiredInt64Group: requiredInt64Group, stringGroup: stringGroup, booleanGroup: booleanGroup, int64Group: int64Group).execute().body } @@ -1808,7 +1788,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func testInlineAdditionalProperties(param: [String: String]) -> AnyPublisher { let requestBuilder = testInlineAdditionalPropertiesWithRequestBuilder(param: param) let requestTask = requestBuilder.requestTask @@ -1838,7 +1817,6 @@ open class FakeAPI { - parameter param: (body) request body - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func testInlineAdditionalProperties(param: [String: String]) async throws(ErrorResponse) { return try await testInlineAdditionalPropertiesWithRequestBuilder(param: param).execute().body } @@ -1958,7 +1936,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func testJsonFormData(param: String, param2: String) -> AnyPublisher { let requestBuilder = testJsonFormDataWithRequestBuilder(param: param, param2: param2) let requestTask = requestBuilder.requestTask @@ -1989,7 +1966,6 @@ open class FakeAPI { - parameter param2: (form) field2 - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func testJsonFormData(param: String, param2: String) async throws(ErrorResponse) { return try await testJsonFormDataWithRequestBuilder(param: param, param2: param2).execute().body } diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/FakeClassnameTags123API.swift b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/FakeClassnameTags123API.swift index 3836355cd3f9..71cb36bec884 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/FakeClassnameTags123API.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/FakeClassnameTags123API.swift @@ -87,7 +87,6 @@ open class FakeClassnameTags123API { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func testClassname(body: Client) -> AnyPublisher { let requestBuilder = testClassnameWithRequestBuilder(body: body) let requestTask = requestBuilder.requestTask @@ -117,7 +116,6 @@ open class FakeClassnameTags123API { - parameter body: (body) client model - returns: Client */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func testClassname(body: Client) async throws(ErrorResponse) -> Client { return try await testClassnameWithRequestBuilder(body: body).execute().body } 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 907cbd4185f2..37f1ce49fc71 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/PetAPI.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/PetAPI.swift @@ -87,7 +87,6 @@ open class PetAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func addPet(body: Pet) -> AnyPublisher { let requestBuilder = addPetWithRequestBuilder(body: body) let requestTask = requestBuilder.requestTask @@ -117,7 +116,6 @@ open class PetAPI { - parameter body: (body) Pet object that needs to be added to the store - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func addPet(body: Pet) async throws(ErrorResponse) { return try await addPetWithRequestBuilder(body: body).execute().body } @@ -243,7 +241,6 @@ open class PetAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func deletePet(petId: Int64, apiKey: String? = nil) -> AnyPublisher { let requestBuilder = deletePetWithRequestBuilder(petId: petId, apiKey: apiKey) let requestTask = requestBuilder.requestTask @@ -274,7 +271,6 @@ open class PetAPI { - parameter apiKey: (header) (optional) - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func deletePet(petId: Int64, apiKey: String? = nil) async throws(ErrorResponse) { return try await deletePetWithRequestBuilder(petId: petId, apiKey: apiKey).execute().body } @@ -407,7 +403,6 @@ open class PetAPI { - returns: AnyPublisher<[Pet], Error> */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func findPetsByStatus(status: [Status_findPetsByStatus]) -> AnyPublisher<[Pet], Error> { let requestBuilder = findPetsByStatusWithRequestBuilder(status: status) let requestTask = requestBuilder.requestTask @@ -437,7 +432,6 @@ open class PetAPI { - parameter status: (query) Status values that need to be considered for filter - returns: [Pet] */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func findPetsByStatus(status: [Status_findPetsByStatus]) async throws(ErrorResponse) -> [Pet] { return try await findPetsByStatusWithRequestBuilder(status: status).execute().body } @@ -563,7 +557,6 @@ open class PetAPI { */ #if canImport(Combine) @available(*, deprecated, message: "This operation is deprecated.") - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func findPetsByTags(tags: [String]) -> AnyPublisher<[Pet], Error> { let requestBuilder = findPetsByTagsWithRequestBuilder(tags: tags) let requestTask = requestBuilder.requestTask @@ -594,7 +587,6 @@ open class PetAPI { - returns: [Pet] */ @available(*, deprecated, message: "This operation is deprecated.") - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func findPetsByTags(tags: [String]) async throws(ErrorResponse) -> [Pet] { return try await findPetsByTagsWithRequestBuilder(tags: tags).execute().body } @@ -719,7 +711,6 @@ open class PetAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func getPetById(petId: Int64) -> AnyPublisher { let requestBuilder = getPetByIdWithRequestBuilder(petId: petId) let requestTask = requestBuilder.requestTask @@ -749,7 +740,6 @@ open class PetAPI { - parameter petId: (path) ID of pet to return - returns: Pet */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func getPetById(petId: Int64) async throws(ErrorResponse) -> Pet { return try await getPetByIdWithRequestBuilder(petId: petId).execute().body } @@ -872,7 +862,6 @@ open class PetAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func updatePet(body: Pet) -> AnyPublisher { let requestBuilder = updatePetWithRequestBuilder(body: body) let requestTask = requestBuilder.requestTask @@ -902,7 +891,6 @@ open class PetAPI { - parameter body: (body) Pet object that needs to be added to the store - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func updatePet(body: Pet) async throws(ErrorResponse) { return try await updatePetWithRequestBuilder(body: body).execute().body } @@ -1029,7 +1017,6 @@ open class PetAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func updatePetWithForm(petId: Int64, name: String? = nil, status: String? = nil) -> AnyPublisher { let requestBuilder = updatePetWithFormWithRequestBuilder(petId: petId, name: name, status: status) let requestTask = requestBuilder.requestTask @@ -1061,7 +1048,6 @@ open class PetAPI { - parameter status: (form) Updated status of the pet (optional) - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func updatePetWithForm(petId: Int64, name: String? = nil, status: String? = nil) async throws(ErrorResponse) { return try await updatePetWithFormWithRequestBuilder(petId: petId, name: name, status: status).execute().body } @@ -1201,7 +1187,6 @@ open class PetAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func uploadFile(petId: Int64, additionalMetadata: String? = nil, file: Data? = nil) -> AnyPublisher { let requestBuilder = uploadFileWithRequestBuilder(petId: petId, additionalMetadata: additionalMetadata, file: file) let requestTask = requestBuilder.requestTask @@ -1233,7 +1218,6 @@ open class PetAPI { - parameter file: (form) file to upload (optional) - returns: ApiResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func uploadFile(petId: Int64, additionalMetadata: String? = nil, file: Data? = nil) async throws(ErrorResponse) -> ApiResponse { return try await uploadFileWithRequestBuilder(petId: petId, additionalMetadata: additionalMetadata, file: file).execute().body } @@ -1373,7 +1357,6 @@ open class PetAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func uploadFileWithRequiredFile(petId: Int64, requiredFile: Data, additionalMetadata: String? = nil) -> AnyPublisher { let requestBuilder = uploadFileWithRequiredFileWithRequestBuilder(petId: petId, requiredFile: requiredFile, additionalMetadata: additionalMetadata) let requestTask = requestBuilder.requestTask @@ -1405,7 +1388,6 @@ open class PetAPI { - parameter additionalMetadata: (form) Additional data to pass to server (optional) - returns: ApiResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func uploadFileWithRequiredFile(petId: Int64, requiredFile: Data, additionalMetadata: String? = nil) async throws(ErrorResponse) -> ApiResponse { return try await uploadFileWithRequiredFileWithRequestBuilder(petId: petId, requiredFile: requiredFile, additionalMetadata: additionalMetadata).execute().body } diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/StoreAPI.swift b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/StoreAPI.swift index f77b823db725..e536aa1eab58 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/StoreAPI.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/StoreAPI.swift @@ -87,7 +87,6 @@ open class StoreAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func deleteOrder(orderId: String) -> AnyPublisher { let requestBuilder = deleteOrderWithRequestBuilder(orderId: orderId) let requestTask = requestBuilder.requestTask @@ -117,7 +116,6 @@ open class StoreAPI { - parameter orderId: (path) ID of the order that needs to be deleted - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func deleteOrder(orderId: String) async throws(ErrorResponse) { return try await deleteOrderWithRequestBuilder(orderId: orderId).execute().body } @@ -233,7 +231,6 @@ open class StoreAPI { - returns: AnyPublisher<[String: Int], Error> */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func getInventory() -> AnyPublisher<[String: Int], Error> { let requestBuilder = getInventoryWithRequestBuilder() let requestTask = requestBuilder.requestTask @@ -262,7 +259,6 @@ open class StoreAPI { - returns: [String: Int] */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func getInventory() async throws(ErrorResponse) -> [String: Int] { return try await getInventoryWithRequestBuilder().execute().body } @@ -380,7 +376,6 @@ open class StoreAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func getOrderById(orderId: Int64) -> AnyPublisher { let requestBuilder = getOrderByIdWithRequestBuilder(orderId: orderId) let requestTask = requestBuilder.requestTask @@ -410,7 +405,6 @@ open class StoreAPI { - parameter orderId: (path) ID of pet that needs to be fetched - returns: Order */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func getOrderById(orderId: Int64) async throws(ErrorResponse) -> Order { return try await getOrderByIdWithRequestBuilder(orderId: orderId).execute().body } @@ -530,7 +524,6 @@ open class StoreAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func placeOrder(body: Order) -> AnyPublisher { let requestBuilder = placeOrderWithRequestBuilder(body: body) let requestTask = requestBuilder.requestTask @@ -560,7 +553,6 @@ open class StoreAPI { - parameter body: (body) order placed for purchasing the pet - returns: Order */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func placeOrder(body: Order) async throws(ErrorResponse) -> Order { return try await placeOrderWithRequestBuilder(body: body).execute().body } diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/UserAPI.swift b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/UserAPI.swift index c64954a0c842..db0f0c5fcef5 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/UserAPI.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/UserAPI.swift @@ -87,7 +87,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func createUser(body: User) -> AnyPublisher { let requestBuilder = createUserWithRequestBuilder(body: body) let requestTask = requestBuilder.requestTask @@ -117,7 +116,6 @@ open class UserAPI { - parameter body: (body) Created user object - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func createUser(body: User) async throws(ErrorResponse) { return try await createUserWithRequestBuilder(body: body).execute().body } @@ -234,7 +232,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func createUsersWithArrayInput(body: [User]) -> AnyPublisher { let requestBuilder = createUsersWithArrayInputWithRequestBuilder(body: body) let requestTask = requestBuilder.requestTask @@ -264,7 +261,6 @@ open class UserAPI { - parameter body: (body) List of user object - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func createUsersWithArrayInput(body: [User]) async throws(ErrorResponse) { return try await createUsersWithArrayInputWithRequestBuilder(body: body).execute().body } @@ -380,7 +376,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func createUsersWithListInput(body: [User]) -> AnyPublisher { let requestBuilder = createUsersWithListInputWithRequestBuilder(body: body) let requestTask = requestBuilder.requestTask @@ -410,7 +405,6 @@ open class UserAPI { - parameter body: (body) List of user object - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func createUsersWithListInput(body: [User]) async throws(ErrorResponse) { return try await createUsersWithListInputWithRequestBuilder(body: body).execute().body } @@ -526,7 +520,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func deleteUser(username: String) -> AnyPublisher { let requestBuilder = deleteUserWithRequestBuilder(username: username) let requestTask = requestBuilder.requestTask @@ -556,7 +549,6 @@ open class UserAPI { - parameter username: (path) The name that needs to be deleted - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func deleteUser(username: String) async throws(ErrorResponse) { return try await deleteUserWithRequestBuilder(username: username).execute().body } @@ -676,7 +668,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func getUserByName(username: String) -> AnyPublisher { let requestBuilder = getUserByNameWithRequestBuilder(username: username) let requestTask = requestBuilder.requestTask @@ -706,7 +697,6 @@ open class UserAPI { - parameter username: (path) The name that needs to be fetched. Use user1 for testing. - returns: User */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func getUserByName(username: String) async throws(ErrorResponse) -> User { return try await getUserByNameWithRequestBuilder(username: username).execute().body } @@ -829,7 +819,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func loginUser(username: String, password: String) -> AnyPublisher { let requestBuilder = loginUserWithRequestBuilder(username: username, password: password) let requestTask = requestBuilder.requestTask @@ -860,7 +849,6 @@ open class UserAPI { - parameter password: (query) The password for login in clear text - returns: String */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func loginUser(username: String, password: String) async throws(ErrorResponse) -> String { return try await loginUserWithRequestBuilder(username: username, password: password).execute().body } @@ -979,7 +967,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func logoutUser() -> AnyPublisher { let requestBuilder = logoutUserWithRequestBuilder() let requestTask = requestBuilder.requestTask @@ -1008,7 +995,6 @@ open class UserAPI { - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func logoutUser() async throws(ErrorResponse) { return try await logoutUserWithRequestBuilder().execute().body } @@ -1126,7 +1112,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func updateUser(username: String, body: User) -> AnyPublisher { let requestBuilder = updateUserWithRequestBuilder(username: username, body: body) let requestTask = requestBuilder.requestTask @@ -1157,7 +1142,6 @@ open class UserAPI { - parameter body: (body) Updated user object - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func updateUser(username: String, body: User) async throws(ErrorResponse) { return try await updateUserWithRequestBuilder(username: username, body: body).execute().body } diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Infrastructure/APIs.swift b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Infrastructure/APIs.swift index 485bc20e0a40..7af51bae5a73 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Infrastructure/APIs.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Infrastructure/APIs.swift @@ -99,20 +99,17 @@ open class RequestBuilder: @unchecked Sendable, Identifiable { #if compiler(>=6.2) @concurrent - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) @discardableResult open func execute() async throws(ErrorResponse) -> Response { try await _execute() } #else - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) @discardableResult open func execute() async throws(ErrorResponse) -> Response { try await _execute() } #endif - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) @discardableResult private func _execute() async throws(ErrorResponse) -> Response { do { diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Category.swift b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Category.swift index 64f4cbd29125..1d65d00009e1 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Category.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Category.swift @@ -32,5 +32,4 @@ public struct Category: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Category: Identifiable {} diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Order.swift b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Order.swift index bf2137d27a16..79047bcea53c 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Order.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Order.swift @@ -54,5 +54,4 @@ public struct Order: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Order: Identifiable {} diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Pet.swift b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Pet.swift index 5e9084ec2ef2..90542764c14a 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Pet.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Pet.swift @@ -57,5 +57,4 @@ public struct Pet: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Pet: Identifiable {} diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Tag.swift b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Tag.swift index 510c09ab0201..98c4ba422c17 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Tag.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Tag.swift @@ -32,5 +32,4 @@ public struct Tag: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Tag: Identifiable {} diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/User.swift b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/User.swift index f012dafe19c6..2d7e6d82b18a 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/User.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/User.swift @@ -57,5 +57,4 @@ public struct User: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension User: Identifiable {} diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj b/samples/client/petstore/swift6/apiNonStaticMethod/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj index 5d8e2b735c11..01614fe0b7c1 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj +++ b/samples/client/petstore/swift6/apiNonStaticMethod/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj @@ -326,7 +326,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -379,7 +379,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; @@ -394,7 +394,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = SwaggerClient/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -410,7 +410,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = SwaggerClient/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -427,7 +427,7 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_ENABLE_MODULES = YES; INFOPLIST_FILE = SwaggerClientTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -446,7 +446,7 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_ENABLE_MODULES = YES; INFOPLIST_FILE = SwaggerClientTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/Package.swift b/samples/client/petstore/swift6/asyncAwaitLibrary/Package.swift index 0c83fdb87472..12cadf5a51e4 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Package.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Package.swift @@ -5,10 +5,10 @@ import PackageDescription let package = Package( name: "PetstoreClient", platforms: [ - .iOS(.v12), - .macOS(.v10_13), - .tvOS(.v12), - .watchOS(.v4), + .iOS(.v13), + .macOS(.v10_15), + .tvOS(.v13), + .watchOS(.v6), ], products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/PetstoreClient.podspec b/samples/client/petstore/swift6/asyncAwaitLibrary/PetstoreClient.podspec index a438db340972..73466e6b7964 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/PetstoreClient.podspec +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/PetstoreClient.podspec @@ -1,9 +1,9 @@ Pod::Spec.new do |s| s.name = 'PetstoreClient' - s.ios.deployment_target = '12.0' - s.osx.deployment_target = '10.13' - s.tvos.deployment_target = '12.0' - s.watchos.deployment_target = '4.0' + s.ios.deployment_target = '13.0' + s.osx.deployment_target = '10.15' + s.tvos.deployment_target = '13.0' + s.watchos.deployment_target = '6.0' s.version = '1.0.0' s.source = { :git => 'git@github.com:OpenAPITools/openapi-generator.git', :tag => 'v1.0.0' } s.authors = '' diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/AnotherFakeAPI.swift b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/AnotherFakeAPI.swift index 961bc491b4ea..da0b4b8600eb 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/AnotherFakeAPI.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/AnotherFakeAPI.swift @@ -16,7 +16,6 @@ open class AnotherFakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Client */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func call123testSpecialTags(body: Client, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> Client { return try await call123testSpecialTagsWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } 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 8c2a987f7c77..b49efe04738f 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift @@ -15,7 +15,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Bool */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func fakeOuterBooleanSerialize(body: Bool? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> Bool { return try await fakeOuterBooleanSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -51,7 +50,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: OuterComposite */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func fakeOuterCompositeSerialize(body: OuterComposite? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> OuterComposite { return try await fakeOuterCompositeSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -87,7 +85,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Double */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func fakeOuterNumberSerialize(body: Double? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> Double { return try await fakeOuterNumberSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -123,7 +120,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: String */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func fakeOuterStringSerialize(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> String { return try await fakeOuterStringSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -159,7 +155,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testBodyWithFileSchema(body: FileSchemaTestClass, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await testBodyWithFileSchemaWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -196,7 +191,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testBodyWithQueryParams(query: String, body: User, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await testBodyWithQueryParamsWithRequestBuilder(query: query, body: body, apiConfiguration: apiConfiguration).execute().body } @@ -236,7 +230,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Client */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testClientModel(body: Client, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> Client { return try await testClientModelWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -287,7 +280,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testEndpointParameters(number: Double, double: Double, patternWithoutDelimiter: String, byte: Data, integer: Int? = nil, int32: Int? = nil, int64: Int64? = nil, float: Float? = nil, string: String? = nil, binary: URL? = nil, date: Date? = nil, dateTime: Date? = nil, password: String? = nil, callback: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await testEndpointParametersWithRequestBuilder(number: number, double: double, patternWithoutDelimiter: patternWithoutDelimiter, byte: byte, integer: integer, int32: int32, int64: int64, float: float, string: string, binary: binary, date: date, dateTime: dateTime, password: password, callback: callback, apiConfiguration: apiConfiguration).execute().body } @@ -433,7 +425,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testEnumParameters(enumHeaderStringArray: [EnumHeaderStringArray_testEnumParameters]? = nil, enumHeaderString: EnumHeaderString_testEnumParameters? = nil, enumQueryStringArray: [EnumQueryStringArray_testEnumParameters]? = nil, enumQueryString: EnumQueryString_testEnumParameters? = nil, enumQueryInteger: EnumQueryInteger_testEnumParameters? = nil, enumQueryDouble: EnumQueryDouble_testEnumParameters? = nil, enumFormStringArray: [EnumFormStringArray_testEnumParameters]? = nil, enumFormString: EnumFormString_testEnumParameters? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await testEnumParametersWithRequestBuilder(enumHeaderStringArray: enumHeaderStringArray, enumHeaderString: enumHeaderString, enumQueryStringArray: enumQueryStringArray, enumQueryString: enumQueryString, enumQueryInteger: enumQueryInteger, enumQueryDouble: enumQueryDouble, enumFormStringArray: enumFormStringArray, enumFormString: enumFormString, apiConfiguration: apiConfiguration).execute().body } @@ -497,7 +488,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testGroupParameters(requiredStringGroup: Int, requiredBooleanGroup: Bool, requiredInt64Group: Int64, stringGroup: Int? = nil, booleanGroup: Bool? = nil, int64Group: Int64? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await testGroupParametersWithRequestBuilder(requiredStringGroup: requiredStringGroup, requiredBooleanGroup: requiredBooleanGroup, requiredInt64Group: requiredInt64Group, stringGroup: stringGroup, booleanGroup: booleanGroup, int64Group: int64Group, apiConfiguration: apiConfiguration).execute().body } @@ -547,7 +537,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testInlineAdditionalProperties(param: [String: String], apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await testInlineAdditionalPropertiesWithRequestBuilder(param: param, apiConfiguration: apiConfiguration).execute().body } @@ -585,7 +574,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testJsonFormData(param: String, param2: String, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await testJsonFormDataWithRequestBuilder(param: param, param2: param2, apiConfiguration: apiConfiguration).execute().body } diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/FakeClassnameTags123API.swift b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/FakeClassnameTags123API.swift index 77649e663603..c74c7891b577 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/FakeClassnameTags123API.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/FakeClassnameTags123API.swift @@ -16,7 +16,6 @@ open class FakeClassnameTags123API { - parameter apiConfiguration: The configuration for the http request. - returns: Client */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testClassname(body: Client, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> Client { return try await testClassnameWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } 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 e7e2b597031e..d7780802743c 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/PetAPI.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/PetAPI.swift @@ -16,7 +16,6 @@ open class PetAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func addPet(body: Pet, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await addPetWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -60,7 +59,6 @@ open class PetAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func deletePet(petId: Int64, apiKey: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await deletePetWithRequestBuilder(petId: petId, apiKey: apiKey, apiConfiguration: apiConfiguration).execute().body } @@ -113,7 +111,6 @@ open class PetAPI { - parameter apiConfiguration: The configuration for the http request. - returns: [Pet] */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func findPetsByStatus(status: [Status_findPetsByStatus], apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> [Pet] { return try await findPetsByStatusWithRequestBuilder(status: status, apiConfiguration: apiConfiguration).execute().body } @@ -158,7 +155,6 @@ open class PetAPI { - returns: [Pet] */ @available(*, deprecated, message: "This operation is deprecated.") - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func findPetsByTags(tags: [String], apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> [Pet] { return try await findPetsByTagsWithRequestBuilder(tags: tags, apiConfiguration: apiConfiguration).execute().body } @@ -203,7 +199,6 @@ open class PetAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Pet */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func getPetById(petId: Int64, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> Pet { return try await getPetByIdWithRequestBuilder(petId: petId, apiConfiguration: apiConfiguration).execute().body } @@ -247,7 +242,6 @@ open class PetAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func updatePet(body: Pet, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await updatePetWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -289,7 +283,6 @@ open class PetAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func updatePetWithForm(petId: Int64, name: String? = nil, status: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await updatePetWithFormWithRequestBuilder(petId: petId, name: name, status: status, apiConfiguration: apiConfiguration).execute().body } @@ -342,7 +335,6 @@ open class PetAPI { - parameter apiConfiguration: The configuration for the http request. - returns: ApiResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func uploadFile(petId: Int64, additionalMetadata: String? = nil, file: URL? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> ApiResponse { return try await uploadFileWithRequestBuilder(petId: petId, additionalMetadata: additionalMetadata, file: file, apiConfiguration: apiConfiguration).execute().body } @@ -395,7 +387,6 @@ open class PetAPI { - parameter apiConfiguration: The configuration for the http request. - returns: ApiResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func uploadFileWithRequiredFile(petId: Int64, requiredFile: URL, additionalMetadata: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> ApiResponse { return try await uploadFileWithRequiredFileWithRequestBuilder(petId: petId, requiredFile: requiredFile, additionalMetadata: additionalMetadata, apiConfiguration: apiConfiguration).execute().body } diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/StoreAPI.swift b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/StoreAPI.swift index 06e30274cec6..7688e9f4456b 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/StoreAPI.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/StoreAPI.swift @@ -16,7 +16,6 @@ open class StoreAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func deleteOrder(orderId: String, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await deleteOrderWithRequestBuilder(orderId: orderId, apiConfiguration: apiConfiguration).execute().body } @@ -56,7 +55,6 @@ open class StoreAPI { - parameter apiConfiguration: The configuration for the http request. - returns: [String: Int] */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func getInventory(apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> [String: Int] { return try await getInventoryWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body } @@ -96,7 +94,6 @@ open class StoreAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Order */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func getOrderById(orderId: Int64, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> Order { return try await getOrderByIdWithRequestBuilder(orderId: orderId, apiConfiguration: apiConfiguration).execute().body } @@ -137,7 +134,6 @@ open class StoreAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Order */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func placeOrder(body: Order, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> Order { return try await placeOrderWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/UserAPI.swift b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/UserAPI.swift index bb05d9be0a52..27c4877f4bfb 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/UserAPI.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/UserAPI.swift @@ -16,7 +16,6 @@ open class UserAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func createUser(body: User, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await createUserWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -54,7 +53,6 @@ open class UserAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func createUsersWithArrayInput(body: [User], apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await createUsersWithArrayInputWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -91,7 +89,6 @@ open class UserAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func createUsersWithListInput(body: [User], apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await createUsersWithListInputWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -128,7 +125,6 @@ open class UserAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func deleteUser(username: String, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await deleteUserWithRequestBuilder(username: username, apiConfiguration: apiConfiguration).execute().body } @@ -169,7 +165,6 @@ open class UserAPI { - parameter apiConfiguration: The configuration for the http request. - returns: User */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func getUserByName(username: String, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> User { return try await getUserByNameWithRequestBuilder(username: username, apiConfiguration: apiConfiguration).execute().body } @@ -210,7 +205,6 @@ open class UserAPI { - parameter apiConfiguration: The configuration for the http request. - returns: String */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func loginUser(username: String, password: String, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> String { return try await loginUserWithRequestBuilder(username: username, password: password, apiConfiguration: apiConfiguration).execute().body } @@ -252,7 +246,6 @@ open class UserAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func logoutUser(apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await logoutUserWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body } @@ -289,7 +282,6 @@ open class UserAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func updateUser(username: String, body: User, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await updateUserWithRequestBuilder(username: username, body: body, apiConfiguration: apiConfiguration).execute().body } diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Infrastructure/APIs.swift b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Infrastructure/APIs.swift index 675c3cf609ed..89dc30b72299 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Infrastructure/APIs.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Infrastructure/APIs.swift @@ -85,20 +85,17 @@ open class RequestBuilder: @unchecked Sendable, Identifiable { #if compiler(>=6.2) @concurrent - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) @discardableResult open func execute() async throws(ErrorResponse) -> Response { try await _execute() } #else - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) @discardableResult open func execute() async throws(ErrorResponse) -> Response { try await _execute() } #endif - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) @discardableResult private func _execute() async throws(ErrorResponse) -> Response { do { diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Category.swift b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Category.swift index 64f4cbd29125..1d65d00009e1 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Category.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Category.swift @@ -32,5 +32,4 @@ public struct Category: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Category: Identifiable {} diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Order.swift b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Order.swift index bf2137d27a16..79047bcea53c 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Order.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Order.swift @@ -54,5 +54,4 @@ public struct Order: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Order: Identifiable {} diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Pet.swift b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Pet.swift index 5e9084ec2ef2..90542764c14a 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Pet.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Pet.swift @@ -57,5 +57,4 @@ public struct Pet: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Pet: Identifiable {} diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Tag.swift b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Tag.swift index 510c09ab0201..98c4ba422c17 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Tag.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Tag.swift @@ -32,5 +32,4 @@ public struct Tag: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Tag: Identifiable {} diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/User.swift b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/User.swift index f012dafe19c6..2d7e6d82b18a 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/User.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/User.swift @@ -57,5 +57,4 @@ public struct User: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension User: Identifiable {} diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj b/samples/client/petstore/swift6/asyncAwaitLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj index 5d8e2b735c11..01614fe0b7c1 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj @@ -326,7 +326,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -379,7 +379,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; @@ -394,7 +394,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = SwaggerClient/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -410,7 +410,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = SwaggerClient/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -427,7 +427,7 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_ENABLE_MODULES = YES; INFOPLIST_FILE = SwaggerClientTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -446,7 +446,7 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_ENABLE_MODULES = YES; INFOPLIST_FILE = SwaggerClientTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/samples/client/petstore/swift6/combineDeferredLibrary/Package.swift b/samples/client/petstore/swift6/combineDeferredLibrary/Package.swift index dc5bc46564c7..72355e07f87c 100644 --- a/samples/client/petstore/swift6/combineDeferredLibrary/Package.swift +++ b/samples/client/petstore/swift6/combineDeferredLibrary/Package.swift @@ -5,10 +5,10 @@ import PackageDescription let package = Package( name: "PetstoreClient", platforms: [ - .iOS(.v12), - .macOS(.v10_13), - .tvOS(.v12), - .watchOS(.v4), + .iOS(.v13), + .macOS(.v10_15), + .tvOS(.v13), + .watchOS(.v6), ], products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. diff --git a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient.podspec b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient.podspec index d5b8cefeffa0..ca2fc21a4068 100644 --- a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient.podspec +++ b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient.podspec @@ -1,9 +1,9 @@ Pod::Spec.new do |s| s.name = 'PetstoreClient' - s.ios.deployment_target = '12.0' - s.osx.deployment_target = '10.13' - s.tvos.deployment_target = '12.0' - s.watchos.deployment_target = '4.0' + s.ios.deployment_target = '13.0' + s.osx.deployment_target = '10.15' + s.tvos.deployment_target = '13.0' + s.watchos.deployment_target = '6.0' s.version = '1.0.0' s.source = { :git => 'git@github.com:OpenAPITools/openapi-generator.git', :tag => 'v1.0.0' } s.authors = '' diff --git a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift index fa46919c4280..d2c38cf61c2d 100644 --- a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift +++ b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift @@ -20,7 +20,6 @@ open class AnotherFakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func call123testSpecialTags(body: Client, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = call123testSpecialTagsWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask 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 554d10d64d99..73d793f7e74a 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 @@ -19,7 +19,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func fakeOuterBooleanSerialize(body: Bool? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = fakeOuterBooleanSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -75,7 +74,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func fakeOuterCompositeSerialize(body: OuterComposite? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = fakeOuterCompositeSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -131,7 +129,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func fakeOuterNumberSerialize(body: Double? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = fakeOuterNumberSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -187,7 +184,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func fakeOuterStringSerialize(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = fakeOuterStringSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -243,7 +239,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testBodyWithFileSchema(body: FileSchemaTestClass, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = testBodyWithFileSchemaWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -300,7 +295,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testBodyWithQueryParams(query: String, body: User, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = testBodyWithQueryParamsWithRequestBuilder(query: query, body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -360,7 +354,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testClientModel(body: Client, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = testClientModelWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -431,7 +424,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testEndpointParameters(number: Double, double: Double, patternWithoutDelimiter: String, byte: Data, integer: Int? = nil, int32: Int? = nil, int64: Int64? = nil, float: Float? = nil, string: String? = nil, binary: URL? = nil, date: Date? = nil, dateTime: Date? = nil, password: String? = nil, callback: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = testEndpointParametersWithRequestBuilder(number: number, double: double, patternWithoutDelimiter: patternWithoutDelimiter, byte: byte, integer: integer, int32: int32, int64: int64, float: float, string: string, binary: binary, date: date, dateTime: dateTime, password: password, callback: callback, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -597,7 +589,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testEnumParameters(enumHeaderStringArray: [EnumHeaderStringArray_testEnumParameters]? = nil, enumHeaderString: EnumHeaderString_testEnumParameters? = nil, enumQueryStringArray: [EnumQueryStringArray_testEnumParameters]? = nil, enumQueryString: EnumQueryString_testEnumParameters? = nil, enumQueryInteger: EnumQueryInteger_testEnumParameters? = nil, enumQueryDouble: EnumQueryDouble_testEnumParameters? = nil, enumFormStringArray: [EnumFormStringArray_testEnumParameters]? = nil, enumFormString: EnumFormString_testEnumParameters? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = testEnumParametersWithRequestBuilder(enumHeaderStringArray: enumHeaderStringArray, enumHeaderString: enumHeaderString, enumQueryStringArray: enumQueryStringArray, enumQueryString: enumQueryString, enumQueryInteger: enumQueryInteger, enumQueryDouble: enumQueryDouble, enumFormStringArray: enumFormStringArray, enumFormString: enumFormString, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -681,7 +672,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testGroupParameters(requiredStringGroup: Int, requiredBooleanGroup: Bool, requiredInt64Group: Int64, stringGroup: Int? = nil, booleanGroup: Bool? = nil, int64Group: Int64? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = testGroupParametersWithRequestBuilder(requiredStringGroup: requiredStringGroup, requiredBooleanGroup: requiredBooleanGroup, requiredInt64Group: requiredInt64Group, stringGroup: stringGroup, booleanGroup: booleanGroup, int64Group: int64Group, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -751,7 +741,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testInlineAdditionalProperties(param: [String: String], apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = testInlineAdditionalPropertiesWithRequestBuilder(param: param, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -809,7 +798,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testJsonFormData(param: String, param2: String, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = testJsonFormDataWithRequestBuilder(param: param, param2: param2, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask diff --git a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift index 856096b9e755..acb2a112c9f0 100644 --- a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift +++ b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift @@ -20,7 +20,6 @@ open class FakeClassnameTags123API { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testClassname(body: Client, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = testClassnameWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask 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 eed0d1d858bc..f196dff8dfa3 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 @@ -20,7 +20,6 @@ open class PetAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func addPet(body: Pet, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = addPetWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -84,7 +83,6 @@ open class PetAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func deletePet(petId: Int64, apiKey: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = deletePetWithRequestBuilder(petId: petId, apiKey: apiKey, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -157,7 +155,6 @@ open class PetAPI { - returns: AnyPublisher<[Pet], Error> */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func findPetsByStatus(status: [Status_findPetsByStatus], apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher<[Pet], Error> { let requestBuilder = findPetsByStatusWithRequestBuilder(status: status, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -222,7 +219,6 @@ open class PetAPI { */ #if canImport(Combine) @available(*, deprecated, message: "This operation is deprecated.") - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func findPetsByTags(tags: [String], apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher<[Pet], Error> { let requestBuilder = findPetsByTagsWithRequestBuilder(tags: tags, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -287,7 +283,6 @@ open class PetAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func getPetById(petId: Int64, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = getPetByIdWithRequestBuilder(petId: petId, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -351,7 +346,6 @@ open class PetAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func updatePet(body: Pet, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = updatePetWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -413,7 +407,6 @@ open class PetAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func updatePetWithForm(petId: Int64, name: String? = nil, status: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = updatePetWithFormWithRequestBuilder(petId: petId, name: name, status: status, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -486,7 +479,6 @@ open class PetAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func uploadFile(petId: Int64, additionalMetadata: String? = nil, file: URL? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = uploadFileWithRequestBuilder(petId: petId, additionalMetadata: additionalMetadata, file: file, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -559,7 +551,6 @@ open class PetAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func uploadFileWithRequiredFile(petId: Int64, requiredFile: URL, additionalMetadata: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = uploadFileWithRequiredFileWithRequestBuilder(petId: petId, requiredFile: requiredFile, additionalMetadata: additionalMetadata, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask diff --git a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift index 8765e5c381a0..7bb79ec52688 100644 --- a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift +++ b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift @@ -20,7 +20,6 @@ open class StoreAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func deleteOrder(orderId: String, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = deleteOrderWithRequestBuilder(orderId: orderId, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -80,7 +79,6 @@ open class StoreAPI { - returns: AnyPublisher<[String: Int], Error> */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func getInventory(apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher<[String: Int], Error> { let requestBuilder = getInventoryWithRequestBuilder(apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -140,7 +138,6 @@ open class StoreAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func getOrderById(orderId: Int64, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = getOrderByIdWithRequestBuilder(orderId: orderId, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -201,7 +198,6 @@ open class StoreAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func placeOrder(body: Order, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = placeOrderWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask diff --git a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift index a78a864eb0ce..8ae61d235e21 100644 --- a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift +++ b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift @@ -20,7 +20,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func createUser(body: User, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = createUserWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -78,7 +77,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func createUsersWithArrayInput(body: [User], apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = createUsersWithArrayInputWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -135,7 +133,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func createUsersWithListInput(body: [User], apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = createUsersWithListInputWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -192,7 +189,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func deleteUser(username: String, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = deleteUserWithRequestBuilder(username: username, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -253,7 +249,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func getUserByName(username: String, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = getUserByNameWithRequestBuilder(username: username, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -314,7 +309,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func loginUser(username: String, password: String, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = loginUserWithRequestBuilder(username: username, password: password, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -376,7 +370,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func logoutUser(apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = logoutUserWithRequestBuilder(apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -433,7 +426,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func updateUser(username: String, body: User, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = updateUserWithRequestBuilder(username: username, body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask diff --git a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift index 64f4cbd29125..1d65d00009e1 100644 --- a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift +++ b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift @@ -32,5 +32,4 @@ public struct Category: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Category: Identifiable {} diff --git a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift index bf2137d27a16..79047bcea53c 100644 --- a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift +++ b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift @@ -54,5 +54,4 @@ public struct Order: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Order: Identifiable {} diff --git a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift index 5e9084ec2ef2..90542764c14a 100644 --- a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift +++ b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift @@ -57,5 +57,4 @@ public struct Pet: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Pet: Identifiable {} diff --git a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift index 510c09ab0201..98c4ba422c17 100644 --- a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift +++ b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift @@ -32,5 +32,4 @@ public struct Tag: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Tag: Identifiable {} diff --git a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift index f012dafe19c6..2d7e6d82b18a 100644 --- a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift +++ b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift @@ -57,5 +57,4 @@ public struct User: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension User: Identifiable {} diff --git a/samples/client/petstore/swift6/combineDeferredLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj b/samples/client/petstore/swift6/combineDeferredLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj index 5d8e2b735c11..01614fe0b7c1 100644 --- a/samples/client/petstore/swift6/combineDeferredLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj +++ b/samples/client/petstore/swift6/combineDeferredLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj @@ -326,7 +326,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -379,7 +379,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; @@ -394,7 +394,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = SwaggerClient/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -410,7 +410,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = SwaggerClient/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -427,7 +427,7 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_ENABLE_MODULES = YES; INFOPLIST_FILE = SwaggerClientTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -446,7 +446,7 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_ENABLE_MODULES = YES; INFOPLIST_FILE = SwaggerClientTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/samples/client/petstore/swift6/combineLibrary/Package.swift b/samples/client/petstore/swift6/combineLibrary/Package.swift index dc3d9db7cf9b..b6869469bd51 100644 --- a/samples/client/petstore/swift6/combineLibrary/Package.swift +++ b/samples/client/petstore/swift6/combineLibrary/Package.swift @@ -5,10 +5,10 @@ import PackageDescription let package = Package( name: "PetstoreClient", platforms: [ - .iOS(.v12), - .macOS(.v10_13), - .tvOS(.v12), - .watchOS(.v4), + .iOS(.v13), + .macOS(.v10_15), + .tvOS(.v13), + .watchOS(.v6), ], products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. diff --git a/samples/client/petstore/swift6/combineLibrary/PetstoreClient.podspec b/samples/client/petstore/swift6/combineLibrary/PetstoreClient.podspec index ead132efcb15..81ffb632ce39 100644 --- a/samples/client/petstore/swift6/combineLibrary/PetstoreClient.podspec +++ b/samples/client/petstore/swift6/combineLibrary/PetstoreClient.podspec @@ -1,9 +1,9 @@ Pod::Spec.new do |s| s.name = 'PetstoreClient' - s.ios.deployment_target = '12.0' - s.osx.deployment_target = '10.13' - s.tvos.deployment_target = '12.0' - s.watchos.deployment_target = '4.0' + s.ios.deployment_target = '13.0' + s.osx.deployment_target = '10.15' + s.tvos.deployment_target = '13.0' + s.watchos.deployment_target = '6.0' s.version = '1.0.0' s.source = { :git => 'git@github.com:OpenAPITools/openapi-generator.git', :tag => 'v1.0.0' } s.authors = '' diff --git a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/AnotherFakeAPI.swift b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/AnotherFakeAPI.swift index 2cae740c373c..369e0c7dcedb 100644 --- a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/AnotherFakeAPI.swift +++ b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/AnotherFakeAPI.swift @@ -20,7 +20,6 @@ open class AnotherFakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func call123testSpecialTags(body: Client, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = call123testSpecialTagsWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask 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 a1941d1ca55b..5353b42009ba 100644 --- a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/FakeAPI.swift @@ -19,7 +19,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func fakeOuterBooleanSerialize(body: Bool? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = fakeOuterBooleanSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -73,7 +72,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func fakeOuterCompositeSerialize(body: OuterComposite? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = fakeOuterCompositeSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -127,7 +125,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func fakeOuterNumberSerialize(body: Double? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = fakeOuterNumberSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -181,7 +178,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func fakeOuterStringSerialize(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = fakeOuterStringSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -235,7 +231,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testBodyWithFileSchema(body: FileSchemaTestClass, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = testBodyWithFileSchemaWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -290,7 +285,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testBodyWithQueryParams(query: String, body: User, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = testBodyWithQueryParamsWithRequestBuilder(query: query, body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -348,7 +342,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testClientModel(body: Client, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = testClientModelWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -417,7 +410,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testEndpointParameters(number: Double, double: Double, patternWithoutDelimiter: String, byte: Data, integer: Int? = nil, int32: Int? = nil, int64: Int64? = nil, float: Float? = nil, string: String? = nil, binary: URL? = nil, date: Date? = nil, dateTime: Date? = nil, password: String? = nil, callback: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = testEndpointParametersWithRequestBuilder(number: number, double: double, patternWithoutDelimiter: patternWithoutDelimiter, byte: byte, integer: integer, int32: int32, int64: int64, float: float, string: string, binary: binary, date: date, dateTime: dateTime, password: password, callback: callback, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -581,7 +573,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testEnumParameters(enumHeaderStringArray: [EnumHeaderStringArray_testEnumParameters]? = nil, enumHeaderString: EnumHeaderString_testEnumParameters? = nil, enumQueryStringArray: [EnumQueryStringArray_testEnumParameters]? = nil, enumQueryString: EnumQueryString_testEnumParameters? = nil, enumQueryInteger: EnumQueryInteger_testEnumParameters? = nil, enumQueryDouble: EnumQueryDouble_testEnumParameters? = nil, enumFormStringArray: [EnumFormStringArray_testEnumParameters]? = nil, enumFormString: EnumFormString_testEnumParameters? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = testEnumParametersWithRequestBuilder(enumHeaderStringArray: enumHeaderStringArray, enumHeaderString: enumHeaderString, enumQueryStringArray: enumQueryStringArray, enumQueryString: enumQueryString, enumQueryInteger: enumQueryInteger, enumQueryDouble: enumQueryDouble, enumFormStringArray: enumFormStringArray, enumFormString: enumFormString, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -663,7 +654,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testGroupParameters(requiredStringGroup: Int, requiredBooleanGroup: Bool, requiredInt64Group: Int64, stringGroup: Int? = nil, booleanGroup: Bool? = nil, int64Group: Int64? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = testGroupParametersWithRequestBuilder(requiredStringGroup: requiredStringGroup, requiredBooleanGroup: requiredBooleanGroup, requiredInt64Group: requiredInt64Group, stringGroup: stringGroup, booleanGroup: booleanGroup, int64Group: int64Group, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -731,7 +721,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testInlineAdditionalProperties(param: [String: String], apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = testInlineAdditionalPropertiesWithRequestBuilder(param: param, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -787,7 +776,6 @@ open class FakeAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testJsonFormData(param: String, param2: String, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = testJsonFormDataWithRequestBuilder(param: param, param2: param2, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask diff --git a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/FakeClassnameTags123API.swift b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/FakeClassnameTags123API.swift index d5fdb809489e..70567b2e3a9d 100644 --- a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/FakeClassnameTags123API.swift +++ b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/FakeClassnameTags123API.swift @@ -20,7 +20,6 @@ open class FakeClassnameTags123API { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testClassname(body: Client, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = testClassnameWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask 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 903bf2abb822..6c634a7abccf 100644 --- a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/PetAPI.swift +++ b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/PetAPI.swift @@ -20,7 +20,6 @@ open class PetAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func addPet(body: Pet, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = addPetWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -82,7 +81,6 @@ open class PetAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func deletePet(petId: Int64, apiKey: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = deletePetWithRequestBuilder(petId: petId, apiKey: apiKey, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -153,7 +151,6 @@ open class PetAPI { - returns: AnyPublisher<[Pet], Error> */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func findPetsByStatus(status: [Status_findPetsByStatus], apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher<[Pet], Error> { let requestBuilder = findPetsByStatusWithRequestBuilder(status: status, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -216,7 +213,6 @@ open class PetAPI { */ #if canImport(Combine) @available(*, deprecated, message: "This operation is deprecated.") - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func findPetsByTags(tags: [String], apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher<[Pet], Error> { let requestBuilder = findPetsByTagsWithRequestBuilder(tags: tags, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -279,7 +275,6 @@ open class PetAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func getPetById(petId: Int64, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = getPetByIdWithRequestBuilder(petId: petId, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -341,7 +336,6 @@ open class PetAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func updatePet(body: Pet, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = updatePetWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -401,7 +395,6 @@ open class PetAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func updatePetWithForm(petId: Int64, name: String? = nil, status: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = updatePetWithFormWithRequestBuilder(petId: petId, name: name, status: status, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -472,7 +465,6 @@ open class PetAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func uploadFile(petId: Int64, additionalMetadata: String? = nil, file: URL? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = uploadFileWithRequestBuilder(petId: petId, additionalMetadata: additionalMetadata, file: file, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -543,7 +535,6 @@ open class PetAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func uploadFileWithRequiredFile(petId: Int64, requiredFile: URL, additionalMetadata: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = uploadFileWithRequiredFileWithRequestBuilder(petId: petId, requiredFile: requiredFile, additionalMetadata: additionalMetadata, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask diff --git a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/StoreAPI.swift b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/StoreAPI.swift index 8f7ce1deb9bf..1581a32c8a2a 100644 --- a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/StoreAPI.swift +++ b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/StoreAPI.swift @@ -20,7 +20,6 @@ open class StoreAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func deleteOrder(orderId: String, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = deleteOrderWithRequestBuilder(orderId: orderId, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -78,7 +77,6 @@ open class StoreAPI { - returns: AnyPublisher<[String: Int], Error> */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func getInventory(apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher<[String: Int], Error> { let requestBuilder = getInventoryWithRequestBuilder(apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -136,7 +134,6 @@ open class StoreAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func getOrderById(orderId: Int64, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = getOrderByIdWithRequestBuilder(orderId: orderId, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -195,7 +192,6 @@ open class StoreAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func placeOrder(body: Order, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = placeOrderWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask diff --git a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/UserAPI.swift b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/UserAPI.swift index 1603f7bcea36..67ab534d1cec 100644 --- a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/UserAPI.swift +++ b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/UserAPI.swift @@ -20,7 +20,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func createUser(body: User, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = createUserWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -76,7 +75,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func createUsersWithArrayInput(body: [User], apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = createUsersWithArrayInputWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -131,7 +129,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func createUsersWithListInput(body: [User], apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = createUsersWithListInputWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -186,7 +183,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func deleteUser(username: String, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = deleteUserWithRequestBuilder(username: username, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -245,7 +241,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func getUserByName(username: String, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = getUserByNameWithRequestBuilder(username: username, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -304,7 +299,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func loginUser(username: String, password: String, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = loginUserWithRequestBuilder(username: username, password: password, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -364,7 +358,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func logoutUser(apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = logoutUserWithRequestBuilder(apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask @@ -419,7 +412,6 @@ open class UserAPI { - returns: AnyPublisher */ #if canImport(Combine) - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func updateUser(username: String, body: User, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = updateUserWithRequestBuilder(username: username, body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask diff --git a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Category.swift b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Category.swift index 64f4cbd29125..1d65d00009e1 100644 --- a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Category.swift +++ b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Category.swift @@ -32,5 +32,4 @@ public struct Category: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Category: Identifiable {} diff --git a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Order.swift b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Order.swift index bf2137d27a16..79047bcea53c 100644 --- a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Order.swift +++ b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Order.swift @@ -54,5 +54,4 @@ public struct Order: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Order: Identifiable {} diff --git a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Pet.swift b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Pet.swift index 5e9084ec2ef2..90542764c14a 100644 --- a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Pet.swift +++ b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Pet.swift @@ -57,5 +57,4 @@ public struct Pet: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Pet: Identifiable {} diff --git a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Tag.swift b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Tag.swift index 510c09ab0201..98c4ba422c17 100644 --- a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Tag.swift +++ b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Tag.swift @@ -32,5 +32,4 @@ public struct Tag: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Tag: Identifiable {} diff --git a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/User.swift b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/User.swift index f012dafe19c6..2d7e6d82b18a 100644 --- a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/User.swift +++ b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/User.swift @@ -57,5 +57,4 @@ public struct User: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension User: Identifiable {} diff --git a/samples/client/petstore/swift6/combineLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj b/samples/client/petstore/swift6/combineLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj index 5d8e2b735c11..01614fe0b7c1 100644 --- a/samples/client/petstore/swift6/combineLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj +++ b/samples/client/petstore/swift6/combineLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj @@ -326,7 +326,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -379,7 +379,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; @@ -394,7 +394,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = SwaggerClient/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -410,7 +410,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = SwaggerClient/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -427,7 +427,7 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_ENABLE_MODULES = YES; INFOPLIST_FILE = SwaggerClientTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -446,7 +446,7 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_ENABLE_MODULES = YES; INFOPLIST_FILE = SwaggerClientTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/samples/client/petstore/swift6/default/Package.swift b/samples/client/petstore/swift6/default/Package.swift index 0c83fdb87472..12cadf5a51e4 100644 --- a/samples/client/petstore/swift6/default/Package.swift +++ b/samples/client/petstore/swift6/default/Package.swift @@ -5,10 +5,10 @@ import PackageDescription let package = Package( name: "PetstoreClient", platforms: [ - .iOS(.v12), - .macOS(.v10_13), - .tvOS(.v12), - .watchOS(.v4), + .iOS(.v13), + .macOS(.v10_15), + .tvOS(.v13), + .watchOS(.v6), ], products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. diff --git a/samples/client/petstore/swift6/default/PetstoreClient.podspec b/samples/client/petstore/swift6/default/PetstoreClient.podspec index a438db340972..73466e6b7964 100644 --- a/samples/client/petstore/swift6/default/PetstoreClient.podspec +++ b/samples/client/petstore/swift6/default/PetstoreClient.podspec @@ -1,9 +1,9 @@ Pod::Spec.new do |s| s.name = 'PetstoreClient' - s.ios.deployment_target = '12.0' - s.osx.deployment_target = '10.13' - s.tvos.deployment_target = '12.0' - s.watchos.deployment_target = '4.0' + s.ios.deployment_target = '13.0' + s.osx.deployment_target = '10.15' + s.tvos.deployment_target = '13.0' + s.watchos.deployment_target = '6.0' s.version = '1.0.0' s.source = { :git => 'git@github.com:OpenAPITools/openapi-generator.git', :tag => 'v1.0.0' } s.authors = '' diff --git a/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/AnotherFakeAPI.swift b/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/AnotherFakeAPI.swift index b4a5ba18dbb0..d75a31e4605a 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/AnotherFakeAPI.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/AnotherFakeAPI.swift @@ -17,7 +17,6 @@ open class AnotherFakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Client */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func call123testSpecialTags(uuidTest: UUID, body: Client, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> Client { return try await call123testSpecialTagsWithRequestBuilder(uuidTest: uuidTest, body: body, apiConfiguration: apiConfiguration).execute().body } 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 1a841ea0b02d..49f224142bc1 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/FakeAPI.swift @@ -16,7 +16,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func createXmlItem(xmlItem: XmlItem, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await createXmlItemWithRequestBuilder(xmlItem: xmlItem, apiConfiguration: apiConfiguration).execute().body } @@ -53,7 +52,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Bool */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func fakeOuterBooleanSerialize(body: Bool? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> Bool { return try await fakeOuterBooleanSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -89,7 +87,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: OuterComposite */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func fakeOuterCompositeSerialize(body: OuterComposite? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> OuterComposite { return try await fakeOuterCompositeSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -125,7 +122,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Double */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func fakeOuterNumberSerialize(body: Double? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> Double { return try await fakeOuterNumberSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -161,7 +157,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: String */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func fakeOuterStringSerialize(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> String { return try await fakeOuterStringSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -197,7 +192,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testBodyWithFileSchema(body: FileSchemaTestClass, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await testBodyWithFileSchemaWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -234,7 +228,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testBodyWithQueryParams(query: String, body: User, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await testBodyWithQueryParamsWithRequestBuilder(query: query, body: body, apiConfiguration: apiConfiguration).execute().body } @@ -274,7 +267,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Client */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testClientModel(body: Client, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> Client { return try await testClientModelWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -325,7 +317,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testEndpointParameters(number: Double, double: Double, patternWithoutDelimiter: String, byte: Data, integer: Int? = nil, int32: Int? = nil, int64: Int64? = nil, float: Float? = nil, string: String? = nil, binary: URL? = nil, date: Date? = nil, dateTime: Date? = nil, password: String? = nil, callback: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await testEndpointParametersWithRequestBuilder(number: number, double: double, patternWithoutDelimiter: patternWithoutDelimiter, byte: byte, integer: integer, int32: int32, int64: int64, float: float, string: string, binary: binary, date: date, dateTime: dateTime, password: password, callback: callback, apiConfiguration: apiConfiguration).execute().body } @@ -471,7 +462,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testEnumParameters(enumHeaderStringArray: [EnumHeaderStringArray_testEnumParameters]? = nil, enumHeaderString: EnumHeaderString_testEnumParameters? = nil, enumQueryStringArray: [EnumQueryStringArray_testEnumParameters]? = nil, enumQueryString: EnumQueryString_testEnumParameters? = nil, enumQueryInteger: EnumQueryInteger_testEnumParameters? = nil, enumQueryDouble: EnumQueryDouble_testEnumParameters? = nil, enumFormStringArray: [EnumFormStringArray_testEnumParameters]? = nil, enumFormString: EnumFormString_testEnumParameters? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await testEnumParametersWithRequestBuilder(enumHeaderStringArray: enumHeaderStringArray, enumHeaderString: enumHeaderString, enumQueryStringArray: enumQueryStringArray, enumQueryString: enumQueryString, enumQueryInteger: enumQueryInteger, enumQueryDouble: enumQueryDouble, enumFormStringArray: enumFormStringArray, enumFormString: enumFormString, apiConfiguration: apiConfiguration).execute().body } @@ -535,7 +525,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testGroupParameters(requiredStringGroup: Int, requiredBooleanGroup: Bool, requiredInt64Group: Int64, stringGroup: Int? = nil, booleanGroup: Bool? = nil, int64Group: Int64? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await testGroupParametersWithRequestBuilder(requiredStringGroup: requiredStringGroup, requiredBooleanGroup: requiredBooleanGroup, requiredInt64Group: requiredInt64Group, stringGroup: stringGroup, booleanGroup: booleanGroup, int64Group: int64Group, apiConfiguration: apiConfiguration).execute().body } @@ -585,7 +574,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testInlineAdditionalProperties(param: [String: String], apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await testInlineAdditionalPropertiesWithRequestBuilder(param: param, apiConfiguration: apiConfiguration).execute().body } @@ -623,7 +611,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testJsonFormData(param: String, param2: String, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await testJsonFormDataWithRequestBuilder(param: param, param2: param2, apiConfiguration: apiConfiguration).execute().body } @@ -670,7 +657,6 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testQueryParameterCollectionFormat(pipe: [String], ioutil: [String], http: [String], url: [String], context: [String], apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await testQueryParameterCollectionFormatWithRequestBuilder(pipe: pipe, ioutil: ioutil, http: http, url: url, context: context, apiConfiguration: apiConfiguration).execute().body } diff --git a/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/FakeClassnameTags123API.swift b/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/FakeClassnameTags123API.swift index 77649e663603..c74c7891b577 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/FakeClassnameTags123API.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/FakeClassnameTags123API.swift @@ -16,7 +16,6 @@ open class FakeClassnameTags123API { - parameter apiConfiguration: The configuration for the http request. - returns: Client */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func testClassname(body: Client, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> Client { return try await testClassnameWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } 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 7127e038bd30..111b92ae26c7 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/PetAPI.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/PetAPI.swift @@ -16,7 +16,6 @@ open class PetAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func addPet(body: Pet, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await addPetWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -57,7 +56,6 @@ open class PetAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func deletePet(petId: Int64, apiKey: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await deletePetWithRequestBuilder(petId: petId, apiKey: apiKey, apiConfiguration: apiConfiguration).execute().body } @@ -110,7 +108,6 @@ open class PetAPI { - parameter apiConfiguration: The configuration for the http request. - returns: [Pet] */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func findPetsByStatus(status: [Status_findPetsByStatus], apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> [Pet] { return try await findPetsByStatusWithRequestBuilder(status: status, apiConfiguration: apiConfiguration).execute().body } @@ -155,7 +152,6 @@ open class PetAPI { - returns: Set */ @available(*, deprecated, message: "This operation is deprecated.") - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func findPetsByTags(tags: Set, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> Set { return try await findPetsByTagsWithRequestBuilder(tags: tags, apiConfiguration: apiConfiguration).execute().body } @@ -200,7 +196,6 @@ open class PetAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Pet */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func getPetById(petId: Int64, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> Pet { return try await getPetByIdWithRequestBuilder(petId: petId, apiConfiguration: apiConfiguration).execute().body } @@ -244,7 +239,6 @@ open class PetAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func updatePet(body: Pet, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await updatePetWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -286,7 +280,6 @@ open class PetAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func updatePetWithForm(petId: Int64, name: String? = nil, status: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await updatePetWithFormWithRequestBuilder(petId: petId, name: name, status: status, apiConfiguration: apiConfiguration).execute().body } @@ -339,7 +332,6 @@ open class PetAPI { - parameter apiConfiguration: The configuration for the http request. - returns: ApiResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func uploadFile(petId: Int64, additionalMetadata: String? = nil, file: URL? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> ApiResponse { return try await uploadFileWithRequestBuilder(petId: petId, additionalMetadata: additionalMetadata, file: file, apiConfiguration: apiConfiguration).execute().body } @@ -392,7 +384,6 @@ open class PetAPI { - parameter apiConfiguration: The configuration for the http request. - returns: ApiResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func uploadFileWithRequiredFile(petId: Int64, requiredFile: URL, additionalMetadata: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> ApiResponse { return try await uploadFileWithRequiredFileWithRequestBuilder(petId: petId, requiredFile: requiredFile, additionalMetadata: additionalMetadata, apiConfiguration: apiConfiguration).execute().body } diff --git a/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/StoreAPI.swift b/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/StoreAPI.swift index 06e30274cec6..7688e9f4456b 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/StoreAPI.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/StoreAPI.swift @@ -16,7 +16,6 @@ open class StoreAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func deleteOrder(orderId: String, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await deleteOrderWithRequestBuilder(orderId: orderId, apiConfiguration: apiConfiguration).execute().body } @@ -56,7 +55,6 @@ open class StoreAPI { - parameter apiConfiguration: The configuration for the http request. - returns: [String: Int] */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func getInventory(apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> [String: Int] { return try await getInventoryWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body } @@ -96,7 +94,6 @@ open class StoreAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Order */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func getOrderById(orderId: Int64, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> Order { return try await getOrderByIdWithRequestBuilder(orderId: orderId, apiConfiguration: apiConfiguration).execute().body } @@ -137,7 +134,6 @@ open class StoreAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Order */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func placeOrder(body: Order, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> Order { return try await placeOrderWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } diff --git a/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/UserAPI.swift b/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/UserAPI.swift index bb05d9be0a52..27c4877f4bfb 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/UserAPI.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/UserAPI.swift @@ -16,7 +16,6 @@ open class UserAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func createUser(body: User, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await createUserWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -54,7 +53,6 @@ open class UserAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func createUsersWithArrayInput(body: [User], apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await createUsersWithArrayInputWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -91,7 +89,6 @@ open class UserAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func createUsersWithListInput(body: [User], apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await createUsersWithListInputWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -128,7 +125,6 @@ open class UserAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func deleteUser(username: String, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await deleteUserWithRequestBuilder(username: username, apiConfiguration: apiConfiguration).execute().body } @@ -169,7 +165,6 @@ open class UserAPI { - parameter apiConfiguration: The configuration for the http request. - returns: User */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func getUserByName(username: String, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> User { return try await getUserByNameWithRequestBuilder(username: username, apiConfiguration: apiConfiguration).execute().body } @@ -210,7 +205,6 @@ open class UserAPI { - parameter apiConfiguration: The configuration for the http request. - returns: String */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func loginUser(username: String, password: String, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> String { return try await loginUserWithRequestBuilder(username: username, password: password, apiConfiguration: apiConfiguration).execute().body } @@ -252,7 +246,6 @@ open class UserAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func logoutUser(apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await logoutUserWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body } @@ -289,7 +282,6 @@ open class UserAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Void */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func updateUser(username: String, body: User, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) { return try await updateUserWithRequestBuilder(username: username, body: body, apiConfiguration: apiConfiguration).execute().body } diff --git a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Infrastructure/APIs.swift b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Infrastructure/APIs.swift index 675c3cf609ed..89dc30b72299 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Infrastructure/APIs.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Infrastructure/APIs.swift @@ -85,20 +85,17 @@ open class RequestBuilder: @unchecked Sendable, Identifiable { #if compiler(>=6.2) @concurrent - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) @discardableResult open func execute() async throws(ErrorResponse) -> Response { try await _execute() } #else - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) @discardableResult open func execute() async throws(ErrorResponse) -> Response { try await _execute() } #endif - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) @discardableResult private func _execute() async throws(ErrorResponse) -> Response { do { diff --git a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Category.swift b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Category.swift index 43c83629acd6..269f99f90199 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Category.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Category.swift @@ -32,5 +32,4 @@ public struct Category: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Category: Identifiable {} diff --git a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Order.swift b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Order.swift index a9ae02be7735..4c806a5dcfd0 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Order.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Order.swift @@ -54,5 +54,4 @@ public struct Order: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Order: Identifiable {} diff --git a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Pet.swift b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Pet.swift index 94679ba5af85..eaf441b4c31e 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Pet.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Pet.swift @@ -55,5 +55,4 @@ public struct Pet: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Pet: Identifiable {} diff --git a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Tag.swift b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Tag.swift index 510c09ab0201..98c4ba422c17 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Tag.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Tag.swift @@ -32,5 +32,4 @@ public struct Tag: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Tag: Identifiable {} diff --git a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/User.swift b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/User.swift index f012dafe19c6..2d7e6d82b18a 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/User.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/User.swift @@ -57,5 +57,4 @@ public struct User: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension User: Identifiable {} diff --git a/samples/client/petstore/swift6/default/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj b/samples/client/petstore/swift6/default/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj index 0fdd3164dc02..c577d162a3c1 100644 --- a/samples/client/petstore/swift6/default/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj +++ b/samples/client/petstore/swift6/default/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj @@ -322,7 +322,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -373,7 +373,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; @@ -388,7 +388,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = SwaggerClient/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -403,7 +403,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = SwaggerClient/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -418,7 +418,7 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; INFOPLIST_FILE = SwaggerClientTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -435,7 +435,7 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; INFOPLIST_FILE = SwaggerClientTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/samples/client/petstore/swift6/objcCompatible/Package.swift b/samples/client/petstore/swift6/objcCompatible/Package.swift index 0c83fdb87472..12cadf5a51e4 100644 --- a/samples/client/petstore/swift6/objcCompatible/Package.swift +++ b/samples/client/petstore/swift6/objcCompatible/Package.swift @@ -5,10 +5,10 @@ import PackageDescription let package = Package( name: "PetstoreClient", platforms: [ - .iOS(.v12), - .macOS(.v10_13), - .tvOS(.v12), - .watchOS(.v4), + .iOS(.v13), + .macOS(.v10_15), + .tvOS(.v13), + .watchOS(.v6), ], products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. diff --git a/samples/client/petstore/swift6/objcCompatible/PetstoreClient.podspec b/samples/client/petstore/swift6/objcCompatible/PetstoreClient.podspec index a438db340972..73466e6b7964 100644 --- a/samples/client/petstore/swift6/objcCompatible/PetstoreClient.podspec +++ b/samples/client/petstore/swift6/objcCompatible/PetstoreClient.podspec @@ -1,9 +1,9 @@ Pod::Spec.new do |s| s.name = 'PetstoreClient' - s.ios.deployment_target = '12.0' - s.osx.deployment_target = '10.13' - s.tvos.deployment_target = '12.0' - s.watchos.deployment_target = '4.0' + s.ios.deployment_target = '13.0' + s.osx.deployment_target = '10.15' + s.tvos.deployment_target = '13.0' + s.watchos.deployment_target = '6.0' s.version = '1.0.0' s.source = { :git => 'git@github.com:OpenAPITools/openapi-generator.git', :tag => 'v1.0.0' } s.authors = '' diff --git a/samples/client/petstore/swift6/oneOf/Package.swift b/samples/client/petstore/swift6/oneOf/Package.swift index dc5bc46564c7..72355e07f87c 100644 --- a/samples/client/petstore/swift6/oneOf/Package.swift +++ b/samples/client/petstore/swift6/oneOf/Package.swift @@ -5,10 +5,10 @@ import PackageDescription let package = Package( name: "PetstoreClient", platforms: [ - .iOS(.v12), - .macOS(.v10_13), - .tvOS(.v12), - .watchOS(.v4), + .iOS(.v13), + .macOS(.v10_15), + .tvOS(.v13), + .watchOS(.v6), ], products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. diff --git a/samples/client/petstore/swift6/oneOf/PetstoreClient.podspec b/samples/client/petstore/swift6/oneOf/PetstoreClient.podspec index 2dec3a8ecf9a..63771b4da439 100644 --- a/samples/client/petstore/swift6/oneOf/PetstoreClient.podspec +++ b/samples/client/petstore/swift6/oneOf/PetstoreClient.podspec @@ -1,9 +1,9 @@ Pod::Spec.new do |s| s.name = 'PetstoreClient' - s.ios.deployment_target = '12.0' - s.osx.deployment_target = '10.13' - s.tvos.deployment_target = '12.0' - s.watchos.deployment_target = '4.0' + s.ios.deployment_target = '13.0' + s.osx.deployment_target = '10.15' + s.tvos.deployment_target = '13.0' + s.watchos.deployment_target = '6.0' s.version = '0.0.1' s.source = { :git => 'git@github.com:OpenAPITools/openapi-generator.git', :tag => 'v0.0.1' } s.authors = '' diff --git a/samples/client/petstore/swift6/promisekitLibrary/Package.swift b/samples/client/petstore/swift6/promisekitLibrary/Package.swift index efc43e9be1d0..2c21ed517d25 100644 --- a/samples/client/petstore/swift6/promisekitLibrary/Package.swift +++ b/samples/client/petstore/swift6/promisekitLibrary/Package.swift @@ -5,10 +5,10 @@ import PackageDescription let package = Package( name: "PetstoreClient", platforms: [ - .iOS(.v12), - .macOS(.v10_13), - .tvOS(.v12), - .watchOS(.v4), + .iOS(.v13), + .macOS(.v10_15), + .tvOS(.v13), + .watchOS(.v6), ], products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. diff --git a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient.podspec b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient.podspec index fa038ff7ce5c..ffddaf37d74d 100644 --- a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient.podspec +++ b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient.podspec @@ -1,9 +1,9 @@ Pod::Spec.new do |s| s.name = 'PetstoreClient' - s.ios.deployment_target = '12.0' - s.osx.deployment_target = '10.13' - s.tvos.deployment_target = '12.0' - s.watchos.deployment_target = '4.0' + s.ios.deployment_target = '13.0' + s.osx.deployment_target = '10.15' + s.tvos.deployment_target = '13.0' + s.watchos.deployment_target = '6.0' s.version = '1.0.0' s.source = { :git => 'git@github.com:OpenAPITools/openapi-generator.git', :tag => 'v1.0.0' } s.authors = '' diff --git a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift index 64f4cbd29125..1d65d00009e1 100644 --- a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift +++ b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift @@ -32,5 +32,4 @@ public struct Category: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Category: Identifiable {} diff --git a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift index bf2137d27a16..79047bcea53c 100644 --- a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift +++ b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift @@ -54,5 +54,4 @@ public struct Order: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Order: Identifiable {} diff --git a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift index 5e9084ec2ef2..90542764c14a 100644 --- a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift +++ b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift @@ -57,5 +57,4 @@ public struct Pet: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Pet: Identifiable {} diff --git a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift index 510c09ab0201..98c4ba422c17 100644 --- a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift +++ b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift @@ -32,5 +32,4 @@ public struct Tag: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Tag: Identifiable {} diff --git a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift index f012dafe19c6..2d7e6d82b18a 100644 --- a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift +++ b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift @@ -57,5 +57,4 @@ public struct User: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension User: Identifiable {} diff --git a/samples/client/petstore/swift6/promisekitLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj b/samples/client/petstore/swift6/promisekitLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj index f1e6635eb979..d382fbab9106 100644 --- a/samples/client/petstore/swift6/promisekitLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj +++ b/samples/client/petstore/swift6/promisekitLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj @@ -321,7 +321,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -374,7 +374,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; @@ -390,7 +390,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = SwaggerClient/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -405,7 +405,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = SwaggerClient/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -420,7 +420,7 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; INFOPLIST_FILE = SwaggerClientTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -437,7 +437,7 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; INFOPLIST_FILE = SwaggerClientTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/samples/client/petstore/swift6/resultLibrary/Package.swift b/samples/client/petstore/swift6/resultLibrary/Package.swift index dc5bc46564c7..72355e07f87c 100644 --- a/samples/client/petstore/swift6/resultLibrary/Package.swift +++ b/samples/client/petstore/swift6/resultLibrary/Package.swift @@ -5,10 +5,10 @@ import PackageDescription let package = Package( name: "PetstoreClient", platforms: [ - .iOS(.v12), - .macOS(.v10_13), - .tvOS(.v12), - .watchOS(.v4), + .iOS(.v13), + .macOS(.v10_15), + .tvOS(.v13), + .watchOS(.v6), ], products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. diff --git a/samples/client/petstore/swift6/resultLibrary/PetstoreClient.podspec b/samples/client/petstore/swift6/resultLibrary/PetstoreClient.podspec index d5b8cefeffa0..ca2fc21a4068 100644 --- a/samples/client/petstore/swift6/resultLibrary/PetstoreClient.podspec +++ b/samples/client/petstore/swift6/resultLibrary/PetstoreClient.podspec @@ -1,9 +1,9 @@ Pod::Spec.new do |s| s.name = 'PetstoreClient' - s.ios.deployment_target = '12.0' - s.osx.deployment_target = '10.13' - s.tvos.deployment_target = '12.0' - s.watchos.deployment_target = '4.0' + s.ios.deployment_target = '13.0' + s.osx.deployment_target = '10.15' + s.tvos.deployment_target = '13.0' + s.watchos.deployment_target = '6.0' s.version = '1.0.0' s.source = { :git => 'git@github.com:OpenAPITools/openapi-generator.git', :tag => 'v1.0.0' } s.authors = '' diff --git a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift index 518c5fad933d..3441fd84e9f8 100644 --- a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift +++ b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift @@ -32,5 +32,4 @@ internal struct Category: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Category: Identifiable {} diff --git a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift index d794422d7b85..013c50f5f44b 100644 --- a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift +++ b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift @@ -55,5 +55,4 @@ internal struct Order: Sendable, Codable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Order: Identifiable {} diff --git a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift index 836a2387b090..68dcc5b859f5 100644 --- a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift +++ b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift @@ -58,5 +58,4 @@ internal struct Pet: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Pet: Identifiable {} diff --git a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift index 08d6b28b9ef0..e57e2613321d 100644 --- a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift +++ b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift @@ -32,5 +32,4 @@ internal struct Tag: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Tag: Identifiable {} diff --git a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift index 3664e7153bb9..295ee291b4a3 100644 --- a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift +++ b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift @@ -57,5 +57,4 @@ internal struct User: Sendable, Codable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension User: Identifiable {} diff --git a/samples/client/petstore/swift6/rxswiftLibrary/Package.swift b/samples/client/petstore/swift6/rxswiftLibrary/Package.swift index 378f1f5691f3..4d7097939163 100644 --- a/samples/client/petstore/swift6/rxswiftLibrary/Package.swift +++ b/samples/client/petstore/swift6/rxswiftLibrary/Package.swift @@ -5,10 +5,10 @@ import PackageDescription let package = Package( name: "PetstoreClient", platforms: [ - .iOS(.v12), - .macOS(.v10_13), - .tvOS(.v12), - .watchOS(.v4), + .iOS(.v13), + .macOS(.v10_15), + .tvOS(.v13), + .watchOS(.v6), ], products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. diff --git a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient.podspec b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient.podspec index 3731fc0afde1..242724e27117 100644 --- a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient.podspec +++ b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient.podspec @@ -1,9 +1,9 @@ Pod::Spec.new do |s| s.name = 'PetstoreClient' - s.ios.deployment_target = '12.0' - s.osx.deployment_target = '10.13' - s.tvos.deployment_target = '12.0' - s.watchos.deployment_target = '4.0' + s.ios.deployment_target = '13.0' + s.osx.deployment_target = '10.15' + s.tvos.deployment_target = '13.0' + s.watchos.deployment_target = '6.0' s.version = '1.0.0' s.source = { :git => 'git@github.com:OpenAPITools/openapi-generator.git', :tag => 'v1.0.0' } s.authors = '' diff --git a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift index 64f4cbd29125..1d65d00009e1 100644 --- a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift +++ b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift @@ -32,5 +32,4 @@ public struct Category: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Category: Identifiable {} diff --git a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift index bf2137d27a16..79047bcea53c 100644 --- a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift +++ b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift @@ -54,5 +54,4 @@ public struct Order: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Order: Identifiable {} diff --git a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift index 5e9084ec2ef2..90542764c14a 100644 --- a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift +++ b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift @@ -57,5 +57,4 @@ public struct Pet: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Pet: Identifiable {} diff --git a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift index 510c09ab0201..98c4ba422c17 100644 --- a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift +++ b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift @@ -32,5 +32,4 @@ public struct Tag: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Tag: Identifiable {} diff --git a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift index f012dafe19c6..2d7e6d82b18a 100644 --- a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift +++ b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift @@ -57,5 +57,4 @@ public struct User: Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension User: Identifiable {} diff --git a/samples/client/petstore/swift6/rxswiftLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj b/samples/client/petstore/swift6/rxswiftLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj index ef8ab32693c6..1cbfba62b5b7 100644 --- a/samples/client/petstore/swift6/rxswiftLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj +++ b/samples/client/petstore/swift6/rxswiftLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj @@ -323,7 +323,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -374,7 +374,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; @@ -389,7 +389,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = SwaggerClient/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -405,7 +405,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = SwaggerClient/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -422,7 +422,7 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_ENABLE_MODULES = YES; INFOPLIST_FILE = SwaggerClientTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -441,7 +441,7 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_ENABLE_MODULES = YES; INFOPLIST_FILE = SwaggerClientTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/samples/client/petstore/swift6/urlsessionLibrary/Package.swift b/samples/client/petstore/swift6/urlsessionLibrary/Package.swift index 0c83fdb87472..12cadf5a51e4 100644 --- a/samples/client/petstore/swift6/urlsessionLibrary/Package.swift +++ b/samples/client/petstore/swift6/urlsessionLibrary/Package.swift @@ -5,10 +5,10 @@ import PackageDescription let package = Package( name: "PetstoreClient", platforms: [ - .iOS(.v12), - .macOS(.v10_13), - .tvOS(.v12), - .watchOS(.v4), + .iOS(.v13), + .macOS(.v10_15), + .tvOS(.v13), + .watchOS(.v6), ], products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. diff --git a/samples/client/petstore/swift6/urlsessionLibrary/PetstoreClient.podspec b/samples/client/petstore/swift6/urlsessionLibrary/PetstoreClient.podspec index a438db340972..73466e6b7964 100644 --- a/samples/client/petstore/swift6/urlsessionLibrary/PetstoreClient.podspec +++ b/samples/client/petstore/swift6/urlsessionLibrary/PetstoreClient.podspec @@ -1,9 +1,9 @@ Pod::Spec.new do |s| s.name = 'PetstoreClient' - s.ios.deployment_target = '12.0' - s.osx.deployment_target = '10.13' - s.tvos.deployment_target = '12.0' - s.watchos.deployment_target = '4.0' + s.ios.deployment_target = '13.0' + s.osx.deployment_target = '10.15' + s.tvos.deployment_target = '13.0' + s.watchos.deployment_target = '6.0' s.version = '1.0.0' s.source = { :git => 'git@github.com:OpenAPITools/openapi-generator.git', :tag => 'v1.0.0' } s.authors = '' diff --git a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Category.swift b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Category.swift index 6214d1c4ae60..3dfbe54660ca 100644 --- a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Category.swift +++ b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Category.swift @@ -50,5 +50,4 @@ public final class Category: @unchecked Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension PetstoreClientAPI.Category: Identifiable {} diff --git a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Order.swift b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Order.swift index b6099721780b..51955bac3e09 100644 --- a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Order.swift +++ b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Order.swift @@ -80,5 +80,4 @@ public final class Order: @unchecked Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension PetstoreClientAPI.Order: Identifiable {} diff --git a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Pet.swift b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Pet.swift index 12897bc44ff0..e53bbe2a464d 100644 --- a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Pet.swift +++ b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Pet.swift @@ -83,5 +83,4 @@ public final class Pet: @unchecked Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension PetstoreClientAPI.Pet: Identifiable {} diff --git a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Tag.swift b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Tag.swift index 98727c593bf2..57191b9a431f 100644 --- a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Tag.swift +++ b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Tag.swift @@ -50,5 +50,4 @@ public final class Tag: @unchecked Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension PetstoreClientAPI.Tag: Identifiable {} diff --git a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/User.swift b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/User.swift index 3447b1a8fe26..c7cc92d11ea8 100644 --- a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/User.swift +++ b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/User.swift @@ -87,5 +87,4 @@ public final class User: @unchecked Sendable, Codable, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension PetstoreClientAPI.User: Identifiable {} diff --git a/samples/client/petstore/swift6/urlsessionLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj b/samples/client/petstore/swift6/urlsessionLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj index 83e40f99b2ba..82a415970b7b 100644 --- a/samples/client/petstore/swift6/urlsessionLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj +++ b/samples/client/petstore/swift6/urlsessionLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj @@ -326,7 +326,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -377,7 +377,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; @@ -392,7 +392,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = SwaggerClient/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -407,7 +407,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = SwaggerClient/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -422,7 +422,7 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; INFOPLIST_FILE = SwaggerClientTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -439,7 +439,7 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; INFOPLIST_FILE = SwaggerClientTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/samples/client/petstore/swift6/validation/Package.swift b/samples/client/petstore/swift6/validation/Package.swift index dc5bc46564c7..72355e07f87c 100644 --- a/samples/client/petstore/swift6/validation/Package.swift +++ b/samples/client/petstore/swift6/validation/Package.swift @@ -5,10 +5,10 @@ import PackageDescription let package = Package( name: "PetstoreClient", platforms: [ - .iOS(.v12), - .macOS(.v10_13), - .tvOS(.v12), - .watchOS(.v4), + .iOS(.v13), + .macOS(.v10_15), + .tvOS(.v13), + .watchOS(.v6), ], products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. diff --git a/samples/client/petstore/swift6/validation/PetstoreClient.podspec b/samples/client/petstore/swift6/validation/PetstoreClient.podspec index 2dec3a8ecf9a..63771b4da439 100644 --- a/samples/client/petstore/swift6/validation/PetstoreClient.podspec +++ b/samples/client/petstore/swift6/validation/PetstoreClient.podspec @@ -1,9 +1,9 @@ Pod::Spec.new do |s| s.name = 'PetstoreClient' - s.ios.deployment_target = '12.0' - s.osx.deployment_target = '10.13' - s.tvos.deployment_target = '12.0' - s.watchos.deployment_target = '4.0' + s.ios.deployment_target = '13.0' + s.osx.deployment_target = '10.15' + s.tvos.deployment_target = '13.0' + s.watchos.deployment_target = '6.0' s.version = '0.0.1' s.source = { :git => 'git@github.com:OpenAPITools/openapi-generator.git', :tag => 'v0.0.1' } s.authors = '' diff --git a/samples/client/petstore/swift6/validation/PetstoreClient/Classes/OpenAPIs/APIs/DefaultAPI.swift b/samples/client/petstore/swift6/validation/PetstoreClient/Classes/OpenAPIs/APIs/DefaultAPI.swift index 3ac2200c3a62..406e2d781e94 100644 --- a/samples/client/petstore/swift6/validation/PetstoreClient/Classes/OpenAPIs/APIs/DefaultAPI.swift +++ b/samples/client/petstore/swift6/validation/PetstoreClient/Classes/OpenAPIs/APIs/DefaultAPI.swift @@ -14,7 +14,6 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Banana */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func rootGet(apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> Banana { return try await rootGetWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body } diff --git a/samples/client/petstore/swift6/validation/PetstoreClient/Classes/OpenAPIs/Infrastructure/APIs.swift b/samples/client/petstore/swift6/validation/PetstoreClient/Classes/OpenAPIs/Infrastructure/APIs.swift index 0b3554a37cfd..e7d8bacb8197 100644 --- a/samples/client/petstore/swift6/validation/PetstoreClient/Classes/OpenAPIs/Infrastructure/APIs.swift +++ b/samples/client/petstore/swift6/validation/PetstoreClient/Classes/OpenAPIs/Infrastructure/APIs.swift @@ -85,20 +85,17 @@ open class RequestBuilder: @unchecked Sendable, Identifiable { #if compiler(>=6.2) @concurrent - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) @discardableResult open func execute() async throws(ErrorResponse) -> Response { try await _execute() } #else - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) @discardableResult open func execute() async throws(ErrorResponse) -> Response { try await _execute() } #endif - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) @discardableResult private func _execute() async throws(ErrorResponse) -> Response { do { diff --git a/samples/client/petstore/swift6/vaporLibrary/Package.resolved b/samples/client/petstore/swift6/vaporLibrary/Package.resolved index 43abc9ffe932..a0a19fb2fda0 100644 --- a/samples/client/petstore/swift6/vaporLibrary/Package.resolved +++ b/samples/client/petstore/swift6/vaporLibrary/Package.resolved @@ -1,15 +1,6 @@ { - "originHash" : "304d1886957f380ef5bd7f0063626a4f4aba90401e7b7bdb7cc76683c6164046", + "originHash" : "c3a84c8391f7f0ac2581ab8e0bfc8d7acee7130c448e7780d24366895df25866", "pins" : [ - { - "identity" : "anycodable", - "kind" : "remoteSourceControl", - "location" : "https://github.com/Flight-School/AnyCodable", - "state" : { - "revision" : "862808b2070cd908cb04f9aafe7de83d35f81b05", - "version" : "0.6.7" - } - }, { "identity" : "async-http-client", "kind" : "remoteSourceControl", diff --git a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Category.swift b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Category.swift index e2115d08fbe0..f99360669afc 100644 --- a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Category.swift +++ b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Category.swift @@ -45,5 +45,4 @@ public final class Category: Content, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Category: Identifiable {} diff --git a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Order.swift b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Order.swift index c6ebc2461026..8b4e86fb6d5a 100644 --- a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Order.swift +++ b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Order.swift @@ -75,5 +75,4 @@ public final class Order: Content, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Order: Identifiable {} diff --git a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Pet.swift b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Pet.swift index 04cffcaa7fc0..b5284e824e11 100644 --- a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Pet.swift +++ b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Pet.swift @@ -76,5 +76,4 @@ public final class Pet: Content, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Pet: Identifiable {} diff --git a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Tag.swift b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Tag.swift index 530aec30b0b0..632f09d0ca95 100644 --- a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Tag.swift +++ b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Tag.swift @@ -45,5 +45,4 @@ public final class Tag: Content, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension Tag: Identifiable {} diff --git a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/User.swift b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/User.swift index 38fbd26b4303..682a621514a8 100644 --- a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/User.swift +++ b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/User.swift @@ -82,5 +82,4 @@ public final class User: Content, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension User: Identifiable {}