@@ -30,6 +30,7 @@ it("multipart form basic", async function () {
30
30
profileImage: bytes;
31
31
}
32
32
33
+ #suppress "deprecated" "For test"
33
34
op basic(@header contentType: "multipart/form-data", @body body: MultiPartRequest): NoContentResponse;
34
35
` ) ;
35
36
@@ -62,7 +63,9 @@ it("multipart conflicting model usage", async function () {
62
63
profileImage: bytes;
63
64
}
64
65
66
+ #suppress "deprecated" "For test"
65
67
@put op jsonUse(@body body: MultiPartRequest): NoContentResponse;
68
+ #suppress "deprecated" "For test"
66
69
@post op multipartUse(@header contentType: "multipart/form-data", @body body: MultiPartRequest): NoContentResponse;
67
70
` ,
68
71
) ;
@@ -84,9 +87,11 @@ it("multipart conflicting model usage for only multipart operations", async func
84
87
85
88
@post
86
89
@route("/basic1")
90
+ #suppress "deprecated" "For test"
87
91
op basic1(@header contentType: "multipart/form-data", @body body: MultiPartRequest): NoContentResponse;
88
92
@post
89
93
@route("/basic2")
94
+ #suppress "deprecated" "For test"
90
95
op basic2(@header contentType: "multipart/form-data", @body body: MultiPartRequest): NoContentResponse;
91
96
` ,
92
97
) ;
@@ -117,9 +122,11 @@ it("multipart conflicting model usage for mixed operations", async function () {
117
122
118
123
@post
119
124
@route("/basic1")
125
+ #suppress "deprecated" "For test"
120
126
op basic1(@body body: RegularRequest): NoContentResponse;
121
127
@post
122
128
@route("/basic2")
129
+ #suppress "deprecated" "For test"
123
130
op basic2(@header contentType: "multipart/form-data", @body body: MultiPartRequest): NoContentResponse;
124
131
` ,
125
132
) ;
@@ -145,7 +152,9 @@ it("multipart resolving conflicting model usage with spread", async function ()
145
152
...B
146
153
}
147
154
155
+ #suppress "deprecated" "For test"
148
156
@put op multipartOperation(@header contentType: "multipart/form-data", ...A): void;
157
+ #suppress "deprecated" "For test"
149
158
@post op normalOperation(...B): void;
150
159
` ,
151
160
) ;
@@ -188,6 +197,7 @@ it("multipart with non-formdata model property", async function () {
188
197
address: Address;
189
198
}
190
199
200
+ #suppress "deprecated" "For test"
191
201
@put op multipartOne(@header contentType: "multipart/form-data", @body body: AddressFirstAppearance): void;
192
202
` ,
193
203
) ;
@@ -202,6 +212,7 @@ it("multipart with list of bytes", async function () {
202
212
pictures: bytes[];
203
213
}
204
214
215
+ #suppress "deprecated" "For test"
205
216
@put op multipartOp(@header contentType: "multipart/form-data", @body body: PictureWrapper): void;
206
217
` ,
207
218
) ;
@@ -227,6 +238,7 @@ it("multipart with encoding bytes raises error", async function () {
227
238
pictures: bytes;
228
239
}
229
240
241
+ #suppress "deprecated" "For test"
230
242
@put op multipartOp(@header contentType: "multipart/form-data", @body body: EncodedBytesMFD): void;
231
243
` ,
232
244
) ;
@@ -247,6 +259,7 @@ it("multipart with reused error model", async function () {
247
259
errorCode: string;
248
260
}
249
261
262
+ #suppress "deprecated" "For test"
250
263
@put op multipartOp(@header contentType: "multipart/form-data", @body body: PictureWrapper): void | ErrorResponse;
251
264
@post op normalOp(): void | ErrorResponse;
252
265
` ,
@@ -284,6 +297,7 @@ it("expands model into formData parameters", async function () {
284
297
interface Widgets {
285
298
@route(":upload")
286
299
@post
300
+ #suppress "deprecated" "For test"
287
301
upload(...WidgetForm): Widget;
288
302
}
289
303
` ) ;
@@ -340,6 +354,7 @@ it("usage doesn't apply to properties of a form data", async function () {
340
354
}
341
355
342
356
@post
357
+ #suppress "deprecated" "For test"
343
358
op upload(@header contentType: "multipart/form-data", @body body: MultiPartRequest): void;
344
359
` ) ;
345
360
const models = runner . context . sdkPackage . models ;
@@ -363,6 +378,7 @@ it("Json[] and bytes[] in multipart/form-data", async function () {
363
378
city: string;
364
379
}
365
380
@post
381
+ #suppress "deprecated" "For test"
366
382
op upload(@header contentType: "multipart/form-data", @body body: MultiPartRequest): void;
367
383
` ) ;
368
384
const models = runner . context . sdkPackage . models ;
@@ -802,6 +818,7 @@ it("multipart in client customization", async () => {
802
818
profileImage: bytes;
803
819
}
804
820
821
+ #suppress "deprecated" "For test"
805
822
@post op multipartUse(@header contentType: "multipart/form-data", @body body: MultiPartRequest): NoContentResponse;
806
823
` ,
807
824
`
0 commit comments