Closed Jaymon closed 1 year ago
Right now, you can specify if a value needs to be there, but not where that value can be empty or not, so something like:
foo = Field(str, True)
means that foo would need to be present, but foo="" would be valid. But something like:
foo
foo=""
foo = Field(str, True, empty=False)
would be handy because it could raise an error if foo="".
Right now, you can specify if a value needs to be there, but not where that value can be empty or not, so something like:
means that
foo
would need to be present, butfoo=""
would be valid. But something like:would be handy because it could raise an error if
foo=""
.