diff --git a/modules/swagger-core/src/main/java/io/swagger/v3/core/util/AnnotationsUtils.java b/modules/swagger-core/src/main/java/io/swagger/v3/core/util/AnnotationsUtils.java index 0fa9e2bcee..e1ed50c9f2 100644 --- a/modules/swagger-core/src/main/java/io/swagger/v3/core/util/AnnotationsUtils.java +++ b/modules/swagger-core/src/main/java/io/swagger/v3/core/util/AnnotationsUtils.java @@ -507,7 +507,7 @@ public static Optional getArraySchema(io.swagger.v3.oas.annotations.medi arraySchemaObject = new ArraySchema(); } else { if (existingSchema == null) { - arraySchemaObject = new JsonSchema(); + arraySchemaObject = new ArraySchema(); } else { arraySchemaObject = existingSchema; }