Skip to content

Commit df0942f

Browse files
Add limitation in the array of events for the endpoint of generate
1 parent 8cfe96f commit df0942f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service/src/main/java/com/ericsson/eiffel/remrem/generate/controller/RemremGenerateController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ public ResponseEntity<?> generate(final String msgProtocol, final String msgType
165165

166166
if (inputEventJsonArray.size() > maxSizeOfInputArray) {
167167
return createResponseEntity(HttpStatus.BAD_REQUEST, JSON_ERROR_STATUS,
168-
"The number of events in the input array is to high: " + inputEventJsonArray.size() + " > " + maxSizeOfInputArray + ", " +
169-
"You can modify the property 'maxSizeOfInputArray' to increase it ");
168+
"The number of events in the input array is too high: " + inputEventJsonArray.size() + " > "
169+
+ maxSizeOfInputArray + "; you can modify the property 'maxSizeOfInputArray' to increase it.");
170170
}
171171
for (JsonElement element : inputEventJsonArray) {
172172
JsonObject generatedEvent = (processEvent(msgProtocol, msgType,

0 commit comments

Comments
 (0)