Skip to content

Commit a505c79

Browse files
committed
chore: add comments for prev commit changes
1 parent b479251 commit a505c79

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/schema-parser/schema-routes.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)