@@ -31,6 +31,10 @@ export class ParameterGenerator {
3131 return this . getFileParameter ( this . parameter ) ;
3232 case 'FilesParam' :
3333 return this . getFilesParameter ( this . parameter ) ;
34+ case 'StreamFileParam' :
35+ return this . getFileParameter ( this . parameter ) ;
36+ case 'StreamFilesParam' :
37+ return this . getFilesParameter ( this . parameter ) ;
3438 case 'Context' :
3539 case 'ContextRequest' :
3640 case 'ContextResponse' :
@@ -89,7 +93,7 @@ export class ParameterGenerator {
8993 return {
9094 description : this . getParameterDescription ( parameter ) ,
9195 in : 'formData' ,
92- name : getDecoratorTextValue ( this . parameter , ident => ident . text === 'FileParam' ) || parameterName ,
96+ name : getDecoratorTextValue ( this . parameter , ident => ident . text === 'FileParam' || ident . text === 'StreamFileParam' ) || parameterName ,
9397 parameterName,
9498 required : ! parameter . questionToken ,
9599 type : { typeName : 'file' }
@@ -106,7 +110,7 @@ export class ParameterGenerator {
106110 return {
107111 description : this . getParameterDescription ( parameter ) ,
108112 in : 'formData' ,
109- name : getDecoratorTextValue ( this . parameter , ident => ident . text === 'FilesParam' ) || parameterName ,
113+ name : getDecoratorTextValue ( this . parameter , ident => ident . text === 'FilesParam' || ident . text === 'StreamFilesParam' ) || parameterName ,
110114 parameterName,
111115 required : ! parameter . questionToken ,
112116 type : { typeName : 'file' }
@@ -255,7 +259,7 @@ export class ParameterGenerator {
255259 return [ 'HeaderParam' , 'QueryParam' , 'Param' , 'FileParam' ,
256260 'PathParam' , 'FilesParam' , 'FormParam' , 'CookieParam' ,
257261 'Context' , 'ContextRequest' , 'ContextResponse' , 'ContextNext' ,
258- 'ContextLanguage' , 'ContextAccept' ] . some ( d => d === decoratorName ) ;
262+ 'ContextLanguage' , 'ContextAccept' , 'StreamFileParam' , 'StreamFilesParam' ] . some ( d => d === decoratorName ) ;
259263 }
260264
261265 private supportPathDataType ( parameterType : Type ) {
0 commit comments