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.
1 parent 931c03b commit 454adecCopy full SHA for 454adec
modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/ModelUtils.java
@@ -534,6 +534,15 @@ public static boolean isFreeFormObject(Schema schema) {
534
return false;
535
}
536
537
+ // not free-form if allOf, anyOf, oneOf is not empty
538
+ if (schema instanceof ComposedSchema) {
539
+ ComposedSchema cs = (ComposedSchema) schema;
540
+ List<Schema> interfaces = getInterfaces(cs);
541
+ if (interfaces != null && !interfaces.isEmpty()) {
542
+ return false;
543
+ }
544
545
+
546
// has at least one property
547
if ("object".equals(schema.getType())) {
548
// no properties
0 commit comments