-
Notifications
You must be signed in to change notification settings - Fork 35
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
required=True takes in empty values #103
Comments
Good question. I just documented the intended behavior here: #104. |
Specifically in |
i would argue that accepting an empty string is surprising and confusing, but won't push too hard on it. |
maybe could add |
Good feedback, and I'll keep that in the back of my mind as I rework.
|
Leaving this issue open as a reminder to implement class MyObject(JsonObject):
not_blank_thing = StringProperty(blank=True)
>>> MyObject.wrap({'not_blank_thing': ''})
...
BadValueError: Property not_blank_thing cannot be blank. |
The text was updated successfully, but these errors were encountered: