Skip to content

Accept empty string on construction#46

Open
shane-kearns wants to merge 1 commit intoypcrts:developfrom
shane-kearns:fix-empty-string-validation
Open

Accept empty string on construction#46
shane-kearns wants to merge 1 commit intoypcrts:developfrom
shane-kearns:fix-empty-string-validation

Conversation

@shane-kearns
Copy link
Copy Markdown

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
Copy Markdown
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

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

2 participants