Skip to content

Commit c5715be

Browse files
committed
more changing the default value
1 parent d8802d9 commit c5715be

8 files changed

Lines changed: 8 additions & 8 deletions

File tree

modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,7 @@ public DefaultCodegen() {
18001800
"Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.");
18011801
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
18021802
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
1803-
this.setDisallowAdditionalPropertiesIfNotPresent(true);
1803+
this.setDisallowAdditionalPropertiesIfNotPresent(false);
18041804

18051805
CliOption enumUnknownDefaultCaseOpt = CliOption.newBoolean(
18061806
CodegenConstants.ENUM_UNKNOWN_DEFAULT_CASE,

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpClientCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public CSharpClientCodegen() {
260260
"Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.");
261261
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
262262
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
263-
this.setDisallowAdditionalPropertiesIfNotPresent(true);
263+
this.setDisallowAdditionalPropertiesIfNotPresent(false);
264264

265265
ImmutableMap.Builder<String, String> frameworkBuilder = new ImmutableMap.Builder<>();
266266
for (FrameworkStrategy frameworkStrategy : frameworkStrategies) {

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpReducedClientCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public CSharpReducedClientCodegen() {
195195
"Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.");
196196
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
197197
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
198-
this.setDisallowAdditionalPropertiesIfNotPresent(true);
198+
this.setDisallowAdditionalPropertiesIfNotPresent(false);
199199

200200
ImmutableMap.Builder<String, String> frameworkBuilder = new ImmutableMap.Builder<>();
201201
for (FrameworkStrategy frameworkStrategy : frameworkStrategies) {

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GoClientCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public GoClientCodegen() {
148148
"Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.");
149149
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
150150
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
151-
this.setDisallowAdditionalPropertiesIfNotPresent(true);
151+
this.setDisallowAdditionalPropertiesIfNotPresent(false);
152152
cliOptions.add(CliOption.newBoolean(WITH_GO_MOD, "Generate go.mod and go.sum", true));
153153
cliOptions.add(CliOption.newBoolean(CodegenConstants.GENERATE_MARSHAL_JSON, CodegenConstants.GENERATE_MARSHAL_JSON_DESC, true));
154154
cliOptions.add(CliOption.newBoolean(CodegenConstants.GENERATE_UNMARSHAL_JSON, CodegenConstants.GENERATE_UNMARSHAL_JSON_DESC, true));

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PowerShellClientCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ public PowerShellClientCodegen() {
567567
"Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.");
568568
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
569569
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
570-
this.setDisallowAdditionalPropertiesIfNotPresent(true);
570+
this.setDisallowAdditionalPropertiesIfNotPresent(false);
571571

572572
// default value in the template
573573
additionalProperties.put("powershellVersion", "6.2"); // minimal PS version

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public PythonClientCodegen() {
169169
"Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.");
170170
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
171171
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
172-
this.setDisallowAdditionalPropertiesIfNotPresent(true);
172+
this.setDisallowAdditionalPropertiesIfNotPresent(false);
173173
}
174174

175175
@Override

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonPydanticV1ClientCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public PythonPydanticV1ClientCodegen() {
178178
"Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.");
179179
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
180180
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
181-
this.setDisallowAdditionalPropertiesIfNotPresent(true);
181+
this.setDisallowAdditionalPropertiesIfNotPresent(false);
182182
}
183183

184184
@Override

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RClientCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public RClientCodegen() {
233233
"Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.");
234234
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
235235
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
236-
this.setDisallowAdditionalPropertiesIfNotPresent(true);
236+
this.setDisallowAdditionalPropertiesIfNotPresent(false);
237237

238238
}
239239

0 commit comments

Comments
 (0)