Skip to content

Commit 0820bce

Browse files
authored
Update ModelUtils.java
1 parent 28fd164 commit 0820bce

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • modules/openapi-generator/src/main/java/org/openapitools/codegen/utils

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2273,8 +2273,6 @@ public static Schema simplifyOneOfAnyOfWithOnlyOneNonNullSubSchema(OpenAPI openA
22732273
return schema;
22742274
}
22752275
}
2276-
2277-
22782276
// if only one element left, simplify to just the element (schema)
22792277
if (subSchemas.size() == 1) {
22802278
Schema<?> subSchema = subSchemas.get(0);
@@ -2619,4 +2617,4 @@ public LinkedHashSet<String> build() {
26192617
}
26202618
}
26212619
}
2622-
}
2620+
}

0 commit comments

Comments
 (0)