You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@available(*, deprecated, message: "This operation is deprecated.")
99
-
{{/isDeprecated}}
97
+
@available(*, deprecated, message: "{{#isDeprecated}}This operation is deprecated. | {{/isDeprecated}}NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
let deferred = Promise<{{{returnType}}}{{#returnType}}{{#isResponseOptional}}?{{/isResponseOptional}}{{/returnType}}{{^returnType}}Void{{/returnType}}>.pending()
102
100
{{operationId}}WithRequestBuilder({{#allParams}}{{paramName}}: {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#apiStaticMethod}}{{#hasParams}}, {{/hasParams}}apiConfiguration: apiConfiguration{{/apiStaticMethod}}).execute { result in
Copy file name to clipboardExpand all lines: samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/AnotherFakeAPI.swift
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@ open class AnotherFakeAPI {
42
42
- parameter body: (body) client model
43
43
- returns: Promise<Client>
44
44
*/
45
+
@available(*, deprecated, message:"NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
Copy file name to clipboardExpand all lines: samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/FakeAPI.swift
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,7 @@ open class FakeAPI {
40
40
- parameter body: (body) Input boolean as post body (optional)
41
41
- returns: Promise<Bool>
42
42
*/
43
+
@available(*, deprecated, message:"NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
fakeOuterBooleanSerializeWithRequestBuilder(body: body).execute{ result in
@@ -179,6 +180,7 @@ open class FakeAPI {
179
180
- parameter body: (body) Input composite as post body (optional)
180
181
- returns: Promise<OuterComposite>
181
182
*/
183
+
@available(*, deprecated, message:"NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
fakeOuterCompositeSerializeWithRequestBuilder(body: body).execute{ result in
@@ -318,6 +320,7 @@ open class FakeAPI {
318
320
- parameter body: (body) Input number as post body (optional)
319
321
- returns: Promise<Double>
320
322
*/
323
+
@available(*, deprecated, message:"NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
fakeOuterNumberSerializeWithRequestBuilder(body: body).execute{ result in
@@ -457,6 +460,7 @@ open class FakeAPI {
457
460
- parameter body: (body) Input string as post body (optional)
458
461
- returns: Promise<String>
459
462
*/
463
+
@available(*, deprecated, message:"NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
fakeOuterStringSerializeWithRequestBuilder(body: body).execute{ result in
@@ -596,6 +600,7 @@ open class FakeAPI {
596
600
- parameter body: (body)
597
601
- returns: Promise<Void>
598
602
*/
603
+
@available(*, deprecated, message:"NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
testBodyWithFileSchemaWithRequestBuilder(body: body).execute{ result in
@@ -737,6 +742,7 @@ open class FakeAPI {
737
742
- parameter body: (body)
738
743
- returns: Promise<Void>
739
744
*/
745
+
@available(*, deprecated, message:"NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
testBodyWithQueryParamsWithRequestBuilder(query: query, body: body).execute{ result in
@@ -885,6 +891,7 @@ open class FakeAPI {
885
891
- parameter body: (body) client model
886
892
- returns: Promise<Client>
887
893
*/
894
+
@available(*, deprecated, message:"NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
testClientModelWithRequestBuilder(body: body).execute{ result in
@@ -1057,6 +1064,7 @@ open class FakeAPI {
1057
1064
- parameter callback: (form) None (optional)
1058
1065
- returns: Promise<Void>
1059
1066
*/
1067
+
@available(*, deprecated, message:"NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
- parameter enumFormString: (form) Form parameter enum test (string) (optional, default to .efg)
1371
1379
- returns: Promise<Void>
1372
1380
*/
1381
+
@available(*, deprecated, message:"NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
testEnumParametersWithRequestBuilder(enumHeaderStringArray: enumHeaderStringArray, enumHeaderString: enumHeaderString, enumQueryStringArray: enumQueryStringArray, enumQueryString: enumQueryString, enumQueryInteger: enumQueryInteger, enumQueryDouble: enumQueryDouble, enumFormStringArray: enumFormStringArray, enumFormString: enumFormString).execute{ result in
@@ -1575,6 +1584,7 @@ open class FakeAPI {
1575
1584
- parameter int64Group: (query) Integer in group parameters (optional)
1576
1585
- returns: Promise<Void>
1577
1586
*/
1587
+
@available(*, deprecated, message:"NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
testGroupParametersWithRequestBuilder(requiredStringGroup: requiredStringGroup, requiredBooleanGroup: requiredBooleanGroup, requiredInt64Group: requiredInt64Group, stringGroup: stringGroup, booleanGroup: booleanGroup, int64Group: int64Group).execute{ result in
@@ -1753,6 +1763,7 @@ open class FakeAPI {
1753
1763
- parameter param: (body) request body
1754
1764
- returns: Promise<Void>
1755
1765
*/
1766
+
@available(*, deprecated, message:"NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
testInlineAdditionalPropertiesWithRequestBuilder(param: param).execute{ result in
@@ -1900,6 +1911,7 @@ open class FakeAPI {
1900
1911
- parameter param2: (form) field2
1901
1912
- returns: Promise<Void>
1902
1913
*/
1914
+
@available(*, deprecated, message:"NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
Copy file name to clipboardExpand all lines: samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/FakeClassnameTags123API.swift
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@ open class FakeClassnameTags123API {
42
42
- parameter body: (body) client model
43
43
- returns: Promise<Client>
44
44
*/
45
+
@available(*, deprecated, message:"NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
Copy file name to clipboardExpand all lines: samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/PetAPI.swift
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@ open class PetAPI {
42
42
- parameter body: (body) Pet object that needs to be added to the store
43
43
- returns: Promise<Void>
44
44
*/
45
+
@available(*, deprecated, message:"NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
45
46
openfunc addPet(body:Pet)->Promise<Void>{
46
47
letdeferred= Promise<Void>.pending()
47
48
addPetWithRequestBuilder(body: body).execute{ result in
@@ -195,6 +196,7 @@ open class PetAPI {
195
196
- parameter apiKey: (header) (optional)
196
197
- returns: Promise<Void>
197
198
*/
199
+
@available(*, deprecated, message:"NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
deletePetWithRequestBuilder(petId: petId, apiKey: apiKey).execute{ result in
@@ -360,6 +362,7 @@ open class PetAPI {
360
362
- parameter status: (query) Status values that need to be considered for filter
361
363
- returns: Promise<[Pet]>
362
364
*/
365
+
@available(*, deprecated, message:"NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
findPetsByStatusWithRequestBuilder(status: status).execute{ result in
@@ -513,7 +516,7 @@ open class PetAPI {
513
516
- parameter tags: (query) Tags to filter by
514
517
- returns: Promise<[Pet]>
515
518
*/
516
-
@available(*, deprecated, message:"This operation is deprecated.")
519
+
@available(*, deprecated, message:"This operation is deprecated. | NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
findPetsByTagsWithRequestBuilder(tags: tags).execute{ result in
@@ -671,6 +674,7 @@ open class PetAPI {
671
674
- parameter petId: (path) ID of pet to return
672
675
- returns: Promise<Pet>
673
676
*/
677
+
@available(*, deprecated, message:"NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
674
678
openfunc getPetById(petId:Int64)->Promise<Pet>{
675
679
letdeferred= Promise<Pet>.pending()
676
680
getPetByIdWithRequestBuilder(petId: petId).execute{ result in
@@ -823,6 +827,7 @@ open class PetAPI {
823
827
- parameter body: (body) Pet object that needs to be added to the store
824
828
- returns: Promise<Void>
825
829
*/
830
+
@available(*, deprecated, message:"NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
826
831
openfunc updatePet(body:Pet)->Promise<Void>{
827
832
letdeferred= Promise<Void>.pending()
828
833
updatePetWithRequestBuilder(body: body).execute{ result in
@@ -975,6 +980,7 @@ open class PetAPI {
975
980
- parameter status: (form) Updated status of the pet (optional)
976
981
- returns: Promise<Void>
977
982
*/
983
+
@available(*, deprecated, message:"NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
updatePetWithFormWithRequestBuilder(petId: petId, name: name, status: status).execute{ result in
@@ -1146,6 +1152,7 @@ open class PetAPI {
1146
1152
- parameter file: (form) file to upload (optional)
1147
1153
- returns: Promise<ApiResponse>
1148
1154
*/
1155
+
@available(*, deprecated, message:"NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
uploadFileWithRequestBuilder(petId: petId, additionalMetadata: additionalMetadata, file: file).execute{ result in
@@ -1317,6 +1324,7 @@ open class PetAPI {
1317
1324
- parameter additionalMetadata: (form) Additional data to pass to server (optional)
1318
1325
- returns: Promise<ApiResponse>
1319
1326
*/
1327
+
@available(*, deprecated, message:"NOTICE: We are considering deprecating PromiseKit support in the Swift 6 generator. If you are still using it, please share your use case here: https://github.com/OpenAPITools/openapi-generator/issues/22791")
0 commit comments