Skip to content

Tier 3: BatchGetItem/BatchWriteItem empty RequestItems use generic validation message #17

@hicksy

Description

@hicksy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingv0.9.10

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions