We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 112b690 + a485705 commit 452e77bCopy full SHA for 452e77b
modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/DefaultGenerator.java
@@ -202,7 +202,7 @@ private void configureGeneratorProperties() {
202
config.additionalProperties().put(CodegenConstants.GENERATE_MODEL_DOCS, generateModelDocumentation);
203
204
// Additional properties could be set already (f.e. using Maven plugin)
205
- if (useOas2Option != null || !config.additionalProperties().containsKey(CodegenConstants.USE_OAS2)) {
+ if (useOas2Option != null && !config.additionalProperties().containsKey(CodegenConstants.USE_OAS2)) {
206
config.additionalProperties().put(CodegenConstants.USE_OAS2, useOas2);
207
}
208
0 commit comments