Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ import Alamofire{{/useAlamofire}}
}

{{#useAsyncAwait}}
@concurrent
Comment thread
cubic-dev-ai[bot] marked this conversation as resolved.
@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<T> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:6.0
// swift-tools-version:6.2

import PackageDescription

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ extension {{projectName}}API {
- parameter apiConfiguration: The configuration for the http request.{{/apiStaticMethod}}
- returns: {{{returnType}}}{{#returnType}}{{#isResponseOptional}}?{{/isResponseOptional}}{{/returnType}}{{^returnType}}Void{{/returnType}}
*/
@concurrent
{{#isDeprecated}}
@available(*, deprecated, message: "This operation is deprecated.")
{{/isDeprecated}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:6.0
// swift-tools-version:6.2

import PackageDescription

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:6.0
// swift-tools-version:6.2

import PackageDescription

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ open class AnotherFakeAPI {
- parameter body: (body) client model
- returns: Client
*/
@concurrent
@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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ open class FakeAPI {
- parameter body: (body) Input boolean as post body (optional)
- returns: Bool
*/
@concurrent
@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
Expand Down Expand Up @@ -250,6 +251,7 @@ open class FakeAPI {
- parameter body: (body) Input composite as post body (optional)
- returns: OuterComposite
*/
@concurrent
@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
Expand Down Expand Up @@ -389,6 +391,7 @@ open class FakeAPI {
- parameter body: (body) Input number as post body (optional)
- returns: Double
*/
@concurrent
@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
Expand Down Expand Up @@ -528,6 +531,7 @@ open class FakeAPI {
- parameter body: (body) Input string as post body (optional)
- returns: String
*/
@concurrent
@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
Expand Down Expand Up @@ -667,6 +671,7 @@ open class FakeAPI {
- parameter body: (body)
- returns: Void
*/
@concurrent
@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
Expand Down Expand Up @@ -811,6 +816,7 @@ open class FakeAPI {
- parameter body: (body)
- returns: Void
*/
@concurrent
@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
Expand Down Expand Up @@ -959,6 +965,7 @@ open class FakeAPI {
- parameter body: (body) client model
- returns: Client
*/
@concurrent
@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
Expand Down Expand Up @@ -1170,6 +1177,7 @@ open class FakeAPI {
- parameter callback: (form) None (optional)
- returns: Void
*/
@concurrent
@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
Expand Down Expand Up @@ -1465,6 +1473,7 @@ open class FakeAPI {
- parameter enumFormString: (form) Form parameter enum test (string) (optional, default to .efg)
- returns: Void
*/
@concurrent
@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
Expand Down Expand Up @@ -1664,6 +1673,7 @@ open class FakeAPI {
- parameter int64Group: (query) Integer in group parameters (optional)
- returns: Void
*/
@concurrent
@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
Expand Down Expand Up @@ -1827,6 +1837,7 @@ open class FakeAPI {
- parameter param: (body) request body
- returns: Void
*/
@concurrent
@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
Expand Down Expand Up @@ -1977,6 +1988,7 @@ open class FakeAPI {
- parameter param2: (form) field2
- returns: Void
*/
@concurrent
@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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ open class FakeClassnameTags123API {
- parameter body: (body) client model
- returns: Client
*/
@concurrent
@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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ open class PetAPI {
- parameter body: (body) Pet object that needs to be added to the store
- returns: Void
*/
@concurrent
@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
Expand Down Expand Up @@ -272,6 +273,7 @@ open class PetAPI {
- parameter apiKey: (header) (optional)
- returns: Void
*/
@concurrent
@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
Expand Down Expand Up @@ -434,6 +436,7 @@ open class PetAPI {
- parameter status: (query) Status values that need to be considered for filter
- returns: [Pet]
*/
@concurrent
@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
Expand Down Expand Up @@ -590,6 +593,7 @@ open class PetAPI {
- parameter tags: (query) Tags to filter by
- returns: [Pet]
*/
@concurrent
@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] {
Expand Down Expand Up @@ -745,6 +749,7 @@ open class PetAPI {
- parameter petId: (path) ID of pet to return
- returns: Pet
*/
@concurrent
@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
Expand Down Expand Up @@ -897,6 +902,7 @@ open class PetAPI {
- parameter body: (body) Pet object that needs to be added to the store
- returns: Void
*/
@concurrent
@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
Expand Down Expand Up @@ -1055,6 +1061,7 @@ open class PetAPI {
- parameter status: (form) Updated status of the pet (optional)
- returns: Void
*/
@concurrent
@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
Expand Down Expand Up @@ -1226,6 +1233,7 @@ open class PetAPI {
- parameter file: (form) file to upload (optional)
- returns: ApiResponse
*/
@concurrent
@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
Expand Down Expand Up @@ -1397,6 +1405,7 @@ open class PetAPI {
- parameter additionalMetadata: (form) Additional data to pass to server (optional)
- returns: ApiResponse
*/
@concurrent
@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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ open class StoreAPI {
- parameter orderId: (path) ID of the order that needs to be deleted
- returns: Void
*/
@concurrent
@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
Expand Down Expand Up @@ -260,6 +261,7 @@ open class StoreAPI {

- returns: [String: Int]
*/
@concurrent
@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
Expand Down Expand Up @@ -407,6 +409,7 @@ open class StoreAPI {
- parameter orderId: (path) ID of pet that needs to be fetched
- returns: Order
*/
@concurrent
@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
Expand Down Expand Up @@ -556,6 +559,7 @@ open class StoreAPI {
- parameter body: (body) order placed for purchasing the pet
- returns: Order
*/
@concurrent
@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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ open class UserAPI {
- parameter body: (body) Created user object
- returns: Void
*/
@concurrent
@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
Expand Down Expand Up @@ -262,6 +263,7 @@ open class UserAPI {
- parameter body: (body) List of user object
- returns: Void
*/
@concurrent
@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
Expand Down Expand Up @@ -407,6 +409,7 @@ open class UserAPI {
- parameter body: (body) List of user object
- returns: Void
*/
@concurrent
@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
Expand Down Expand Up @@ -552,6 +555,7 @@ open class UserAPI {
- parameter username: (path) The name that needs to be deleted
- returns: Void
*/
@concurrent
@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
Expand Down Expand Up @@ -701,6 +705,7 @@ open class UserAPI {
- parameter username: (path) The name that needs to be fetched. Use user1 for testing.
- returns: User
*/
@concurrent
@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
Expand Down Expand Up @@ -854,6 +859,7 @@ open class UserAPI {
- parameter password: (query) The password for login in clear text
- returns: String
*/
@concurrent
@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
Expand Down Expand Up @@ -1001,6 +1007,7 @@ open class UserAPI {

- returns: Void
*/
@concurrent
@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
Expand Down Expand Up @@ -1149,6 +1156,7 @@ open class UserAPI {
- parameter body: (body) Updated user object
- returns: Void
*/
@concurrent
@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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ open class RequestBuilder<T>: @unchecked Sendable, Identifiable {
return requestTask
}

@concurrent
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@discardableResult
open func execute() async throws(ErrorResponse) -> Response<T> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:6.0
// swift-tools-version:6.2

import PackageDescription

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ open class AnotherFakeAPI {
- parameter apiConfiguration: The configuration for the http request.
- returns: Client
*/
@concurrent
@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
Expand Down
Loading
Loading