powertools-lambda-java
powertools-lambda-java copied to clipboard
feat(v2): batch validation with partial failure
Issue #, if available: #1496
Description of changes:
Adding partial failure for validation with SQS and Kinesis. Modification of the ValidationAspect.java to validate each messages of SQS/Kinesis batches and put invalid messages in partial batch failures list of the response. After the handler, we merge with user batch failures.
Checklist
- [x] Meet tenets criteria
- [x] Update tests
- [x] Update docs
- [x] PR title follows conventional commit semantics
Breaking change checklist
RFC issue #:
- [ ] Migration process documented
- [ ] Implement warnings (if it can live side by side)
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.