From cb4915ab924d9c73e94675e1bfa2081ee54e553f Mon Sep 17 00:00:00 2001 From: ngp Date: Fri, 15 May 2020 12:00:44 +0530 Subject: [PATCH] fix for the issue facing spec invlolving arrayschema structure with ref fix for the issue facing spec invlolving arrayschema structure with ref --- .../org/openapitools/codegen/languages/AbstractJavaCodegen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java index 49823e19f8fd..bbf9a3004ac6 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java @@ -798,7 +798,7 @@ public String toDefaultValue(Schema schema) { Schema items = getSchemaItems((ArraySchema) schema); - String typeDeclaration = getTypeDeclaration(items); + String typeDeclaration = getTypeDeclaration(ModelUtils.unaliasSchema(this.openAPI, items)); Object java8obj = additionalProperties.get("java8"); if (java8obj != null) { Boolean java8 = Boolean.valueOf(java8obj.toString());