Skip to content

Commit 452e77b

Browse files
authored
Merge pull request #10880 from sleicht/fix_10879
2 parents 112b690 + a485705 commit 452e77b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/DefaultGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ private void configureGeneratorProperties() {
202202
config.additionalProperties().put(CodegenConstants.GENERATE_MODEL_DOCS, generateModelDocumentation);
203203

204204
// Additional properties could be set already (f.e. using Maven plugin)
205-
if (useOas2Option != null || !config.additionalProperties().containsKey(CodegenConstants.USE_OAS2)) {
205+
if (useOas2Option != null && !config.additionalProperties().containsKey(CodegenConstants.USE_OAS2)) {
206206
config.additionalProperties().put(CodegenConstants.USE_OAS2, useOas2);
207207
}
208208

0 commit comments

Comments
 (0)