Skip to content
New issue

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

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

Already on GitHub? # to your account

Accept empty string on construction #46

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

shane-kearns
Copy link

The empty string is already treated as invalid by the supplied validators. It was incorrect to raise ValueError on construction since this requires users to pre-validate strings before passing to a validation library.

Fixes #45

The empty string is already treated as invalid by the supplied
validators. It was incorrect to raise ValueError on construction since
this requires users to pre-validate strings before passing to a
validation library.

Fixes ypcrts#45
@ypcrts
Copy link
Owner

ypcrts commented Mar 5, 2025

Thanks for making this. This breaks the API contract, so this cannot be merged as is. More discussion on #45

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty string should not raise ValueError on construction
2 participants