From 7294c908a526a9e63a66bf6c7b3590fff36cae65 Mon Sep 17 00:00:00 2001 From: owen-burroughs Date: Mon, 17 Jun 2024 16:16:21 +0100 Subject: [PATCH] Create new ArraySchema in getArraySchema --- .../src/main/java/io/swagger/v3/core/util/AnnotationsUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }