@@ -73,6 +73,7 @@ worksFor(["3.0.0", "3.1.0"], ({ openApiFor }) => {
73
73
const res = await openApiFor (
74
74
`
75
75
model Form { @header contentType: "multipart/form-data", name: string, profileImage: bytes }
76
+ #suppress "deprecated" "For testing to migrate for 1.0-rc"
76
77
op upload(...Form): void;
77
78
` ,
78
79
) ;
@@ -88,6 +89,7 @@ worksFor(["3.0.0", "3.1.0"], ({ openApiFor }) => {
88
89
const res = await openApiFor (
89
90
`
90
91
union MyUnion {string, int32}
92
+ #suppress "deprecated" "For testing to migrate for 1.0-rc"
91
93
op upload(@header contentType: "multipart/form-data", profileImage: MyUnion): void;
92
94
` ,
93
95
) ;
@@ -108,6 +110,7 @@ worksFor(["3.0.0", "3.1.0"], ({ openApiFor }) => {
108
110
it ( "part of type `string` produce `type: string`" , async ( ) => {
109
111
const res = await openApiFor (
110
112
`
113
+ #suppress "deprecated" "For testing to migrate for 1.0-rc"
111
114
op upload(@header contentType: "multipart/form-data", name: string): void;
112
115
` ,
113
116
) ;
@@ -128,6 +131,7 @@ worksFor(["3.0.0", "3.1.0"], ({ openApiFor }) => {
128
131
it ( "part of type `object` produce an object" , async ( ) => {
129
132
const res = await openApiFor (
130
133
`
134
+ #suppress "deprecated" "For testing to migrate for 1.0-rc"
131
135
op upload(@header contentType: "multipart/form-data", address: {city: string, street: string}): void;
132
136
` ,
133
137
) ;
@@ -164,6 +168,7 @@ worksFor(["3.0.0", "3.1.0"], ({ openApiFor }) => {
164
168
165
169
interface Files {
166
170
@get listFiles(purpose: FilePurpose): string;
171
+ #suppress "deprecated" "For testing to migrate for 1.0-rc"
167
172
@post uploadFile(@header contentType: "multipart/form-data", purpose: FilePurpose): string;
168
173
}
169
174
` ,
@@ -334,6 +339,7 @@ worksFor(["3.0.0"], ({ openApiFor }) => {
334
339
it ( "part of type `bytes` produce `type: string, format: binary`" , async ( ) => {
335
340
const res = await openApiFor (
336
341
`
342
+ #suppress "deprecated" "For testing to migrate for 1.0-rc"
337
343
op upload(@header contentType: "multipart/form-data", profileImage: bytes): void;
338
344
` ,
339
345
) ;
@@ -355,6 +361,7 @@ worksFor(["3.0.0"], ({ openApiFor }) => {
355
361
it ( "part of type union `bytes | {content: bytes}` produce `type: string, format: binary`" , async ( ) => {
356
362
const res = await openApiFor (
357
363
`
364
+ #suppress "deprecated" "For testing to migrate for 1.0-rc"
358
365
op upload(@header contentType: "multipart/form-data", profileImage: bytes | {content: bytes}): void;
359
366
` ,
360
367
) ;
@@ -387,6 +394,7 @@ worksFor(["3.0.0"], ({ openApiFor }) => {
387
394
it ( "part of type `bytes[]` produce `type: array, items: {type: string, format: binary}`" , async ( ) => {
388
395
const res = await openApiFor (
389
396
`
397
+ #suppress "deprecated" "For testing to migrate for 1.0-rc"
390
398
op upload(@header contentType: "multipart/form-data", profileImage: bytes[]): void;
391
399
` ,
392
400
) ;
@@ -408,6 +416,7 @@ worksFor(["3.0.0"], ({ openApiFor }) => {
408
416
it ( "bytes inside a json part will be treated as base64 encoded by default(same as for a json body)" , async ( ) => {
409
417
const res = await openApiFor (
410
418
`
419
+ #suppress "deprecated" "For testing to migrate for 1.0-rc"
411
420
op upload(@header contentType: "multipart/form-data", address: {city: string, icon: bytes}): void;
412
421
` ,
413
422
) ;
@@ -585,6 +594,7 @@ worksFor(["3.1.0"], ({ openApiFor }) => {
585
594
it ( "part of type `bytes` produce `{}`" , async ( ) => {
586
595
const res = await openApiFor (
587
596
`
597
+ #suppress "deprecated" "For testing to migrate for 1.0-rc"
588
598
op upload(@header contentType: "multipart/form-data", profileImage: bytes): void;
589
599
` ,
590
600
) ;
@@ -603,6 +613,7 @@ worksFor(["3.1.0"], ({ openApiFor }) => {
603
613
it ( "part of type union `bytes | {content: bytes}` produce `{} | { content: {type: string, contentEncoding: 'base64' }`" , async ( ) => {
604
614
const res = await openApiFor (
605
615
`
616
+ #suppress "deprecated" "For testing to migrate for 1.0-rc"
606
617
op upload(@header contentType: "multipart/form-data", profileImage: bytes | {content: bytes}): void;
607
618
` ,
608
619
) ;
@@ -632,6 +643,7 @@ worksFor(["3.1.0"], ({ openApiFor }) => {
632
643
it ( "part of type `bytes[]` produce `type: array, items: {}`" , async ( ) => {
633
644
const res = await openApiFor (
634
645
`
646
+ #suppress "deprecated" "For testing to migrate for 1.0-rc"
635
647
op upload(@header contentType: "multipart/form-data", profileImage: bytes[]): void;
636
648
` ,
637
649
) ;
@@ -653,6 +665,7 @@ worksFor(["3.1.0"], ({ openApiFor }) => {
653
665
it ( "bytes inside a json part will be treated as base64 encoded by default(same as for a json body)" , async ( ) => {
654
666
const res = await openApiFor (
655
667
`
668
+ #suppress "deprecated" "For testing to migrate for 1.0-rc"
656
669
op upload(@header contentType: "multipart/form-data", address: {city: string, icon: bytes}): void;
657
670
` ,
658
671
) ;
0 commit comments