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 {
383
383
[ ] ,
384
384
) ;
385
385
386
- getResponseBodyInfo = ( routeInfo , routeParams , parsedSchemas ) => {
386
+ getResponseBodyInfo = ( routeInfo , parsedSchemas ) => {
387
387
const { produces, operationId, responses } = routeInfo ;
388
388
389
389
const contentTypes = this . getContentTypes ( responses , [ ...( produces || [ ] ) , routeInfo [ "x-accepts" ] ] ) ;
@@ -720,12 +720,13 @@ class SchemaRoutes {
720
720
const pathArgs = routeParams . path . map ( ( pathArgSchema ) => ( {
721
721
name : pathArgSchema . name ,
722
722
optional : ! pathArgSchema . required ,
723
+ // mark it as any for now, because "getInlineParseContent" breaks type names of extracted enums
723
724
type : this . config . Ts . Keyword . Any ,
724
725
description : pathArgSchema . description ,
725
726
} ) ) ;
726
727
const pathArgsNames = pathArgs . map ( ( arg ) => arg . name ) ;
727
728
728
- const responseBodyInfo = this . getResponseBodyInfo ( routeInfo , routeParams , parsedSchemas ) ;
729
+ const responseBodyInfo = this . getResponseBodyInfo ( routeInfo , parsedSchemas ) ;
729
730
730
731
const rawRouteInfo = {
731
732
...otherInfo ,
You can’t perform that action at this time.
0 commit comments