WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Forbid an empty string in key attributes #164

@ob-ivan

Description

@ob-ivan

This is to imitate the DynamoDB behaviour that throws this error:

The AttributeValue for a key attribute cannot contain an empty string value.

I'm using jest-dynalite to test a user creating function, and I'm sad that the unit tests don't fail when creating a user with an empty email despite the email being an index field. I have only found that out in production.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions