Summary
BatchGetItem and BatchWriteItem with empty RequestItems emit a generic schema-validation error. Real DynamoDB special-cases the empty case with a "parameter is required" message.
Version: dynoxide 0.9.9
Cases
BatchGetItem
Test: tests/tier3/error-messages/batchGetItem.test.ts "empty RequestItems: full required-parameter error"
Expected:
The requestItems parameter is required for BatchGetItem
Actual:
1 validation error detected: Value '{}' at 'requestItems' failed to satisfy constraint: Member must have length greater than or equal to 1
BatchWriteItem
Test: tests/tier3/error-messages/batchWriteItem.test.ts "empty RequestItems: full required-parameter error"
Expected:
The requestItems parameter is required for BatchWriteItem
Actual:
1 validation error detected: Value at 'requestItems' failed to satisfy constraint: Member must have length greater than or equal to 1
Summary
BatchGetItemandBatchWriteItemwith emptyRequestItemsemit a generic schema-validation error. Real DynamoDB special-cases the empty case with a "parameter is required" message.Version: dynoxide 0.9.9
Cases
BatchGetItem
Test:
tests/tier3/error-messages/batchGetItem.test.ts"empty RequestItems: full required-parameter error"Expected:
Actual:
BatchWriteItem
Test:
tests/tier3/error-messages/batchWriteItem.test.ts"empty RequestItems: full required-parameter error"Expected:
Actual: