Skip to content

Commit fa0c259

Browse files
committed
Do not pass "true" to getArraySchema to avoid StackOverflow on recursive models
1 parent c1a4e9e commit fa0c259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-core/src/main/java/io/swagger/v3/core/jackson/ModelResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ public Schema resolve(AnnotatedType annotatedType, ModelConverterContext context
828828
if (reResolvedProperty.isPresent()) {
829829
property = reResolvedProperty.get();
830830
}
831-
reResolvedProperty = AnnotationsUtils.getArraySchema(ctxArraySchema, annotatedType.getComponents(), null, openapi31, property, true);
831+
reResolvedProperty = AnnotationsUtils.getArraySchema(ctxArraySchema, annotatedType.getComponents(), null, openapi31, property);
832832
if (reResolvedProperty.isPresent()) {
833833
property = reResolvedProperty.get();
834834
}

0 commit comments

Comments
 (0)