You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Default TypeScript fetch configuration to 3.6+ true, as it's been out for a while now
* TypeScript fetch update the three plus CLI option default to true
* Apply doc generator patch
* Build the project and update samples
* remove VERSION
* test ts fetch clients first
* Revert "test ts fetch clients first"
This reverts commit 590a7f2.
Co-authored-by: szTheory <[email protected]>
Copy file name to clipboardExpand all lines: docs/generators/typescript-fetch.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
37
37
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.||true|
38
38
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.||true|
39
39
|supportsES6|Generate code that conforms to ES6.||false|
40
-
|typescriptThreePlus|Setting this property to true will generate TypeScript 3.6+ compatible code.||false|
40
+
|typescriptThreePlus|Setting this property to true will generate TypeScript 3.6+ compatible code.||true|
41
41
|useSingleRequestParameter|Setting this property to true will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter.||true|
42
42
|withInterfaces|Setting this property to true will generate interfaces next to the default class implementations.||false|
43
43
|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|
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptFetchClientCodegen.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ public class TypeScriptFetchClientCodegen extends AbstractTypeScriptClientCodege
47
47
privatebooleanprefixParameterInterfaces = false;
48
48
protectedbooleanaddedApiIndex = false;
49
49
protectedbooleanaddedModelIndex = false;
50
-
protectedbooleantypescriptThreePlus = false;
50
+
protectedbooleantypescriptThreePlus = true;
51
51
protectedbooleanwithoutRuntimeChecks = false;
52
52
53
53
// "Saga and Record" mode.
@@ -93,7 +93,7 @@ public TypeScriptFetchClientCodegen() {
93
93
this.cliOptions.add(newCliOption(WITH_INTERFACES, "Setting this property to true will generate interfaces next to the default class implementations.", SchemaTypeUtil.BOOLEAN_TYPE).defaultValue(Boolean.FALSE.toString()));
this.cliOptions.add(newCliOption(PREFIX_PARAMETER_INTERFACES, "Setting this property to true will generate parameter interface declarations prefixed with API class name to avoid name conflicts.", SchemaTypeUtil.BOOLEAN_TYPE).defaultValue(Boolean.FALSE.toString()));
96
-
this.cliOptions.add(newCliOption(TYPESCRIPT_THREE_PLUS, "Setting this property to true will generate TypeScript 3.6+ compatible code.", SchemaTypeUtil.BOOLEAN_TYPE).defaultValue(Boolean.FALSE.toString()));
96
+
this.cliOptions.add(newCliOption(TYPESCRIPT_THREE_PLUS, "Setting this property to true will generate TypeScript 3.6+ compatible code.", SchemaTypeUtil.BOOLEAN_TYPE).defaultValue(Boolean.TRUE.toString()));
97
97
this.cliOptions.add(newCliOption(WITHOUT_RUNTIME_CHECKS, "Setting this property to true will remove any runtime checks on the request and response payloads. Payloads will be casted to their expected types.", SchemaTypeUtil.BOOLEAN_TYPE).defaultValue(Boolean.FALSE.toString()));
98
98
this.cliOptions.add(newCliOption(SAGAS_AND_RECORDS, "Setting this property to true will generate additional files for use with redux-saga and immutablejs.", SchemaTypeUtil.BOOLEAN_TYPE).defaultValue(Boolean.FALSE.toString()));
0 commit comments