forked from loafle/openapi-generator-original
set disallowAdditionalPropertiesIfNotPresent to false as default
This commit is contained in:
parent
4260c7aaf0
commit
587d4b0679
@ -233,7 +233,7 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
|
||||
"Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.");
|
||||
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
|
||||
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
|
||||
this.setDisallowAdditionalPropertiesIfNotPresent(true);
|
||||
this.setDisallowAdditionalPropertiesIfNotPresent(false);
|
||||
|
||||
ImmutableMap.Builder<String, String> frameworkBuilder = new ImmutableMap.Builder<>();
|
||||
for (FrameworkStrategy frameworkStrategy : frameworkStrategies) {
|
||||
|
@ -194,7 +194,7 @@ public class CSharpReducedClientCodegen extends AbstractCSharpCodegen {
|
||||
"Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.");
|
||||
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
|
||||
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
|
||||
this.setDisallowAdditionalPropertiesIfNotPresent(true);
|
||||
this.setDisallowAdditionalPropertiesIfNotPresent(false);
|
||||
|
||||
ImmutableMap.Builder<String, String> frameworkBuilder = new ImmutableMap.Builder<>();
|
||||
for (FrameworkStrategy frameworkStrategy : frameworkStrategies) {
|
||||
|
@ -136,7 +136,7 @@ public class GoClientCodegen extends AbstractGoCodegen {
|
||||
"Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.");
|
||||
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
|
||||
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
|
||||
this.setDisallowAdditionalPropertiesIfNotPresent(true);
|
||||
this.setDisallowAdditionalPropertiesIfNotPresent(false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -568,7 +568,7 @@ public class PowerShellClientCodegen extends DefaultCodegen implements CodegenCo
|
||||
"Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.");
|
||||
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
|
||||
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
|
||||
this.setDisallowAdditionalPropertiesIfNotPresent(true);
|
||||
this.setDisallowAdditionalPropertiesIfNotPresent(false);
|
||||
|
||||
// default value in the template
|
||||
additionalProperties.put("powershellVersion", "6.2"); // minimal PS version
|
||||
|
@ -184,7 +184,7 @@ public class PythonClientCodegen extends AbstractPythonCodegen implements Codege
|
||||
"Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.");
|
||||
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
|
||||
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
|
||||
this.setDisallowAdditionalPropertiesIfNotPresent(true);
|
||||
this.setDisallowAdditionalPropertiesIfNotPresent(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -233,7 +233,7 @@ public class RClientCodegen extends DefaultCodegen implements CodegenConfig {
|
||||
"Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.");
|
||||
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
|
||||
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
|
||||
this.setDisallowAdditionalPropertiesIfNotPresent(true);
|
||||
this.setDisallowAdditionalPropertiesIfNotPresent(false);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user