Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ private Object resolvePropertyToExample(String propertyName, String mediaType, P
if (innerType != null) {
int arrayLength = null == ((ArrayProperty) property).getMaxItems() ? 2 : ((ArrayProperty) property).getMaxItems();
if(arrayLength>10000) {
logger.warn("The max item is too large to new Object array and set it to 10000, the previous value is {}", arrayLength);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This warning message is a bit unclear. Could you change it to something like logger.warn("The max items allowed in property {} is too large ({} items), restricting it to 10,000 items", property, arrayLength)?

arrayLength=10000;
}
Object[] objectProperties = new Object[arrayLength];
Expand Down