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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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
1 participant