From 4984f9c3d57fa5288b254663935e9a6b6b27c0a5 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Mon, 23 Nov 2020 17:16:36 +0800 Subject: [PATCH] Correct allOf with only one child schema (no discriminator) (#7855) * Correct allOf with only one child schema (no discriminator * fix tests --- .../org/openapitools/codegen/utils/ModelUtils.java | 14 ++++++-------- .../openapitools/codegen/DefaultCodegenTest.java | 7 +++---- .../codegen/java/JavaClientCodegenTest.java | 4 ++-- .../codegen/java/JavaInheritanceTest.java | 5 +++-- 4 files changed, 14 insertions(+), 16 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/ModelUtils.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/ModelUtils.java index b37dccb46536..2ad0470bc15c 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/ModelUtils.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/ModelUtils.java @@ -1316,14 +1316,12 @@ public static String getParentName(ComposedSchema composedSchema, Map