Skip to content

Commit 5331bae

Browse files
committed
comment
1 parent 5764fe5 commit 5331bae

File tree

1 file changed

+1
-0
lines changed
  • powertools-validation/src/main/java/software/amazon/lambda/powertools/validation/internal

1 file changed

+1
-0
lines changed

powertools-validation/src/main/java/software/amazon/lambda/powertools/validation/internal/ValidationAspect.java

+1
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ public Object around(ProceedingJoinPoint pjp,
236236

237237
/**
238238
* Validate each Kinesis record body. If an error occurs, do not fail the whole batch but only add invalid items in BatchItemFailure.
239+
* Note that the valid records will be decoded twice (during validation and within the handler by the user), which will slightly reduce performance.
239240
* @param records Kinesis records
240241
* @param inboundJsonSchema validation schema
241242
* @return the stream response with items in failure

0 commit comments

Comments
 (0)