Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forbid an empty string in key attributes #164

Open
ob-ivan opened this issue Mar 9, 2023 · 1 comment
Open

Forbid an empty string in key attributes #164

ob-ivan opened this issue Mar 9, 2023 · 1 comment

Comments

@ob-ivan
Copy link

ob-ivan commented Mar 9, 2023

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.

@reconbot
Copy link
Member

reconbot commented Sep 7, 2023

@tbeseda this seems like a good 4.0 change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants