Skip to content

Commit e5725c4

Browse files
committed
fix: default schema of request parameters
- The bug that `MethodOptionsWithSpec.requestParameters` did not have `schema` is fix. They are treated as strings by default. issue codemonger-io/codemonger#1
1 parent d98fe71 commit e5725c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rest-api-with-spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,9 @@ function translateRequestParameters(
524524
name: parsedKey.name,
525525
in: parsedKey.location,
526526
required,
527+
schema: {
528+
type: 'string',
529+
},
527530
});
528531
}
529532
}

0 commit comments

Comments
 (0)