fix for the issue facing spec invlolving arrayschema structure with ref (#6310)

fix for the issue facing spec invlolving arrayschema structure with ref
This commit is contained in:
ngp-star
2020-08-02 21:46:25 +05:30
committed by GitHub
parent 761364eec9
commit 93159de77d

View File

@@ -798,7 +798,7 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
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());