Skip to content

Commit f4afe8e

Browse files
committed
Add withRequestOptsInInterface to options test and regenerate docs
1 parent 58342bd commit f4afe8e

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

docs/generators/typescript-fetch.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
4747
|useSquareBracketsInArrayNames|Setting this property to true will add brackets to array attribute names, e.g. my_values[].| |false|
4848
|validationAttributes|Setting this property to true will generate the validation attributes of model properties.| |false|
4949
|withInterfaces|Setting this property to true will generate interfaces next to the default class implementations.| |false|
50+
|withRequestOptsInInterface|Setting this property to true will include *RequestOpts methods in the API interface declarations. Set to false to keep them only on the class.| |true|
5051
|withoutRuntimeChecks|Setting this property to true will remove any runtime checks on the request and response payloads. Payloads will be casted to their expected types.| |false|
5152

5253
## IMPORT MAPPING

modules/openapi-generator/src/test/java/org/openapitools/codegen/options/TypeScriptFetchClientOptionsProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public Map<String, String> createOptions() {
5353
.put(TypeScriptFetchClientCodegen.STRING_ENUMS, STRING_ENUMS)
5454
.put(TypeScriptFetchClientCodegen.USE_SQUARE_BRACKETS_IN_ARRAY_NAMES, Boolean.FALSE.toString())
5555
.put(TypeScriptFetchClientCodegen.VALIDATION_ATTRIBUTES, Boolean.FALSE.toString())
56+
.put(TypeScriptFetchClientCodegen.WITH_REQUEST_OPTS_IN_INTERFACE, Boolean.TRUE.toString())
5657
.build();
5758
}
5859
}

0 commit comments

Comments
 (0)