File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1- import * as ts from 'typescript' ;
2- import { getDecoratorName , getDecoratorOptions , getDecoratorTextValue } from '../utils/decoratorUtils' ;
31import { MetadataGenerator , Parameter , Type } from './metadataGenerator' ;
4- import { getCommonPrimitiveAndArrayUnionType , getLiteralValue , resolveType } from './resolveType' ;
2+ import { resolveType , getCommonPrimitiveAndArrayUnionType , getLiteralValue } from './resolveType' ;
3+ import { getDecoratorName , getDecoratorTextValue , getDecoratorOptions } from '../utils/decoratorUtils' ;
4+ import * as ts from 'typescript' ;
55
66export class ParameterGenerator {
77 constructor (
Original file line number Diff line number Diff line change @@ -387,6 +387,18 @@ export class ParameterizedEndpoint {
387387 stream ( @swagger . StreamFileParam ( 'stream' ) file : Express . Multer . File ) : PrimitiveClassModel {
388388 return new PrimitiveClassModel ( ) ;
389389 }
390+
391+ @Path ( '/file' )
392+ @POST
393+ file ( @FileParam ( 'file' ) file : Express . Multer . File ) : PrimitiveClassModel {
394+ return new PrimitiveClassModel ( ) ;
395+ }
396+
397+ @Path ( '/stream' )
398+ @POST
399+ stream ( @swagger . StreamFileParam ( 'stream' ) file : Express . Multer . File ) : PrimitiveClassModel {
400+ return new PrimitiveClassModel ( ) ;
401+ }
390402}
391403
392404export abstract class Entity {
You can’t perform that action at this time.
0 commit comments