Skip to content

Commit 269d948

Browse files
committed
[swift6] fix vapor build
1 parent 95cc707 commit 269d948

46 files changed

Lines changed: 46 additions & 134 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/APIs/StoreAPI.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ open class StoreAPI {
104104
- returns: `EventLoopFuture` of `GetInventory`
105105
*/
106106
open class func getInventory(headers: HTTPHeaders = PetstoreClientAPIConfiguration.shared.customHeaders, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture<GetInventory> {
107-
return getInventoryRaw(headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> GetInventory in
107+
return getInventoryRaw(headers: headers, apiConfiguration: apiConfiguration, beforeSend: beforeSend).flatMapThrowing { response -> GetInventory in
108108
switch response.status.code {
109109
case 200:
110110
return .http200(value: try response.content.decode([String: Int].self, using: apiConfiguration.contentConfiguration.requireDecoder(for: [String: Int].defaultContentType)), raw: response)

samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/APIs/UserAPI.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ open class UserAPI {
341341
- returns: `EventLoopFuture` of `LogoutUser`
342342
*/
343343
open class func logoutUser(headers: HTTPHeaders = PetstoreClientAPIConfiguration.shared.customHeaders, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture<LogoutUser> {
344-
return logoutUserRaw(headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> LogoutUser in
344+
return logoutUserRaw(headers: headers, apiConfiguration: apiConfiguration, beforeSend: beforeSend).flatMapThrowing { response -> LogoutUser in
345345
switch response.status.code {
346346
default:
347347
return .http0(raw: response)

samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesAnyType.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Foundation
99
import Vapor
1010

11-
public struct AdditionalPropertiesAnyType: Content, Hashable {
11+
public struct AdditionalPropertiesAnyType: Sendable, Content, Hashable {
1212

1313
public var name: String?
1414

@@ -55,7 +55,5 @@ public struct AdditionalPropertiesAnyType: Content, Hashable {
5555
let additionalPropertiesContainer = try decoder.container(keyedBy: String.self)
5656
additionalProperties = try additionalPropertiesContainer.decodeMap(JSONValue.self, excludedKeys: nonAdditionalPropertyKeys)
5757
}
58-
59-
6058
}
6159

samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesArray.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Foundation
99
import Vapor
1010

11-
public struct AdditionalPropertiesArray: Content, Hashable {
11+
public struct AdditionalPropertiesArray: Sendable, Content, Hashable {
1212

1313
public var name: String?
1414

@@ -55,7 +55,5 @@ public struct AdditionalPropertiesArray: Content, Hashable {
5555
let additionalPropertiesContainer = try decoder.container(keyedBy: String.self)
5656
additionalProperties = try additionalPropertiesContainer.decodeMap([JSONValue].self, excludedKeys: nonAdditionalPropertyKeys)
5757
}
58-
59-
6058
}
6159

samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesBoolean.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Foundation
99
import Vapor
1010

11-
public struct AdditionalPropertiesBoolean: Content, Hashable {
11+
public struct AdditionalPropertiesBoolean: Sendable, Content, Hashable {
1212

1313
public var name: String?
1414

@@ -55,7 +55,5 @@ public struct AdditionalPropertiesBoolean: Content, Hashable {
5555
let additionalPropertiesContainer = try decoder.container(keyedBy: String.self)
5656
additionalProperties = try additionalPropertiesContainer.decodeMap(Bool.self, excludedKeys: nonAdditionalPropertyKeys)
5757
}
58-
59-
6058
}
6159

samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesClass.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Foundation
99
import Vapor
1010

11-
public struct AdditionalPropertiesClass: Content, Hashable {
11+
public struct AdditionalPropertiesClass: Sendable, Content, Hashable {
1212

1313
public var mapString: [String: String]?
1414
public var mapNumber: [String: Double]?
@@ -66,7 +66,5 @@ public struct AdditionalPropertiesClass: Content, Hashable {
6666
try container.encodeIfPresent(anytype2, forKey: .anytype2)
6767
try container.encodeIfPresent(anytype3, forKey: .anytype3)
6868
}
69-
70-
7169
}
7270

samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesInteger.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Foundation
99
import Vapor
1010

11-
public struct AdditionalPropertiesInteger: Content, Hashable {
11+
public struct AdditionalPropertiesInteger: Sendable, Content, Hashable {
1212

1313
public var name: String?
1414

@@ -55,7 +55,5 @@ public struct AdditionalPropertiesInteger: Content, Hashable {
5555
let additionalPropertiesContainer = try decoder.container(keyedBy: String.self)
5656
additionalProperties = try additionalPropertiesContainer.decodeMap(Int.self, excludedKeys: nonAdditionalPropertyKeys)
5757
}
58-
59-
6058
}
6159

samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesNumber.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Foundation
99
import Vapor
1010

11-
public struct AdditionalPropertiesNumber: Content, Hashable {
11+
public struct AdditionalPropertiesNumber: Sendable, Content, Hashable {
1212

1313
public var name: String?
1414

@@ -55,7 +55,5 @@ public struct AdditionalPropertiesNumber: Content, Hashable {
5555
let additionalPropertiesContainer = try decoder.container(keyedBy: String.self)
5656
additionalProperties = try additionalPropertiesContainer.decodeMap(Double.self, excludedKeys: nonAdditionalPropertyKeys)
5757
}
58-
59-
6058
}
6159

samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesObject.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Foundation
99
import Vapor
1010

11-
public struct AdditionalPropertiesObject: Content, Hashable {
11+
public struct AdditionalPropertiesObject: Sendable, Content, Hashable {
1212

1313
public var name: String?
1414

@@ -55,7 +55,5 @@ public struct AdditionalPropertiesObject: Content, Hashable {
5555
let additionalPropertiesContainer = try decoder.container(keyedBy: String.self)
5656
additionalProperties = try additionalPropertiesContainer.decodeMap([String: JSONValue].self, excludedKeys: nonAdditionalPropertyKeys)
5757
}
58-
59-
6058
}
6159

samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesString.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Foundation
99
import Vapor
1010

11-
public struct AdditionalPropertiesString: Content, Hashable {
11+
public struct AdditionalPropertiesString: Sendable, Content, Hashable {
1212

1313
public var name: String?
1414

@@ -55,7 +55,5 @@ public struct AdditionalPropertiesString: Content, Hashable {
5555
let additionalPropertiesContainer = try decoder.container(keyedBy: String.self)
5656
additionalProperties = try additionalPropertiesContainer.decodeMap(String.self, excludedKeys: nonAdditionalPropertyKeys)
5757
}
58-
59-
6058
}
6159

0 commit comments

Comments
 (0)