forked from loafle/openapi-generator-original
Compare commits
1 Commits
master
...
additonal-
Author | SHA1 | Date | |
---|---|---|---|
|
587d4b0679 |
@ -233,7 +233,7 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
|
|||||||
"Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.");
|
"Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.");
|
||||||
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
|
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
|
||||||
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
|
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
|
||||||
this.setDisallowAdditionalPropertiesIfNotPresent(true);
|
this.setDisallowAdditionalPropertiesIfNotPresent(false);
|
||||||
|
|
||||||
ImmutableMap.Builder<String, String> frameworkBuilder = new ImmutableMap.Builder<>();
|
ImmutableMap.Builder<String, String> frameworkBuilder = new ImmutableMap.Builder<>();
|
||||||
for (FrameworkStrategy frameworkStrategy : frameworkStrategies) {
|
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.");
|
"Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.");
|
||||||
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
|
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
|
||||||
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
|
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
|
||||||
this.setDisallowAdditionalPropertiesIfNotPresent(true);
|
this.setDisallowAdditionalPropertiesIfNotPresent(false);
|
||||||
|
|
||||||
ImmutableMap.Builder<String, String> frameworkBuilder = new ImmutableMap.Builder<>();
|
ImmutableMap.Builder<String, String> frameworkBuilder = new ImmutableMap.Builder<>();
|
||||||
for (FrameworkStrategy frameworkStrategy : frameworkStrategies) {
|
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.");
|
"Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.");
|
||||||
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
|
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
|
||||||
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
|
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.");
|
"Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.");
|
||||||
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
|
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
|
||||||
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
|
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
|
||||||
this.setDisallowAdditionalPropertiesIfNotPresent(true);
|
this.setDisallowAdditionalPropertiesIfNotPresent(false);
|
||||||
|
|
||||||
// default value in the template
|
// default value in the template
|
||||||
additionalProperties.put("powershellVersion", "6.2"); // minimal PS version
|
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.");
|
"Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.");
|
||||||
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
|
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
|
||||||
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
|
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
|
||||||
this.setDisallowAdditionalPropertiesIfNotPresent(true);
|
this.setDisallowAdditionalPropertiesIfNotPresent(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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.");
|
"Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.");
|
||||||
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
|
disallowAdditionalPropertiesIfNotPresentOpt.setEnum(disallowAdditionalPropertiesIfNotPresentOpts);
|
||||||
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
|
cliOptions.add(disallowAdditionalPropertiesIfNotPresentOpt);
|
||||||
this.setDisallowAdditionalPropertiesIfNotPresent(true);
|
this.setDisallowAdditionalPropertiesIfNotPresent(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user