Skip to content

Commit 9208816

Browse files
committed
Add boolean type for extract-request-params in command configuration
Signed-off-by: Sora Morimoto <[email protected]>
1 parent 9fed833 commit 9208816

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/early-kings-marry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"swagger-typescript-api": patch
3+
---
4+
5+
Add boolean type for `extract-request-params` in command configuration.

index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ const generateCommand = defineCommand({
146146
default: codeGenBaseConfig.enumNamesAsValues,
147147
},
148148
"extract-request-params": {
149+
type: "boolean",
149150
description:
150151
"extract request params to data contract (Also combine path params and query params into one object)",
151152
default: codeGenBaseConfig.extractRequestParams,

0 commit comments

Comments
 (0)