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
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptNestjsServerCodegen.java
+37-10Lines changed: 37 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,9 @@ public class TypeScriptNestjsServerCodegen extends AbstractTypeScriptClientCodeg
"Use discriminators to create tagged unions instead of extending interfaces.",
97
104
this.taggedUnions));
98
-
this.cliOptions.add(newCliOption(NEST_VERSION, "The version of Nestjs.").addEnum("10.0.0", "Use latest NestJS with decorators and dependency injection.").addEnum("9.0.0", "Use NestJS 9.x with decorators and dependency injection.").defaultValue(this.nestVersion));
105
+
this.cliOptions.add(newCliOption(NEST_VERSION, "The version of Nestjs. (At least 10.0.0)").defaultValue(this.nestVersion));
99
106
this.cliOptions.add(newCliOption(API_SUFFIX, "The suffix of the generated API class").defaultValue(this.apiSuffix));
100
107
this.cliOptions.add(newCliOption(API_FILE_SUFFIX, "The suffix of the file of the generated API class (api<suffix>.ts).").defaultValue(this.apiFileSuffix));
101
108
this.cliOptions.add(newCliOption(MODEL_SUFFIX, "The suffix of the generated model."));
102
109
this.cliOptions.add(newCliOption(MODEL_FILE_SUFFIX, "The suffix of the file of the generated model (model<suffix>.ts)."));
103
110
this.cliOptions.add(newCliOption(FILE_NAMING, "Naming convention for the output files: 'camelCase', 'kebab-case'.").defaultValue(this.fileNaming));
this.cliOptions.add(newCliOption(USE_SINGLE_REQUEST_PARAMETER, "Setting this property to true will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter.").defaultValue(Boolean.FALSE.toString()));
113
+
this.cliOptions.add(newCliOption(TS_VERSION, "The version of typescript compatible with Angular (see ngVersion option)."));
114
+
this.cliOptions.add(newCliOption(RXJS_VERSION, "The version of RxJS compatible with Angular (see ngVersion option)."));
106
115
}
107
116
108
117
@Override
@@ -123,7 +132,7 @@ public String getName() {
123
132
124
133
@Override
125
134
publicStringgetHelp() {
126
-
return"Generates a TypeScript NestJS 10.x or 9.x server stub.";
135
+
return"Generates a TypeScript NestJS server stub.";
0 commit comments