File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ class SchemaRoutes {
383383 [ ] ,
384384 ) ;
385385
386- getResponseBodyInfo = ( routeInfo , routeParams , parsedSchemas ) => {
386+ getResponseBodyInfo = ( routeInfo , parsedSchemas ) => {
387387 const { produces, operationId, responses } = routeInfo ;
388388
389389 const contentTypes = this . getContentTypes ( responses , [ ...( produces || [ ] ) , routeInfo [ "x-accepts" ] ] ) ;
@@ -720,12 +720,13 @@ class SchemaRoutes {
720720 const pathArgs = routeParams . path . map ( ( pathArgSchema ) => ( {
721721 name : pathArgSchema . name ,
722722 optional : ! pathArgSchema . required ,
723+ // mark it as any for now, because "getInlineParseContent" breaks type names of extracted enums
723724 type : this . config . Ts . Keyword . Any ,
724725 description : pathArgSchema . description ,
725726 } ) ) ;
726727 const pathArgsNames = pathArgs . map ( ( arg ) => arg . name ) ;
727728
728- const responseBodyInfo = this . getResponseBodyInfo ( routeInfo , routeParams , parsedSchemas ) ;
729+ const responseBodyInfo = this . getResponseBodyInfo ( routeInfo , parsedSchemas ) ;
729730
730731 const rawRouteInfo = {
731732 ...otherInfo ,
You can’t perform that action at this time.
0 commit comments