Skip to content

Doesn't schema validation check empty string? #620

Answered by mom1
becory asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, this is normal pydantic behavior. try like this

class UserSchema(Schema):
    name: str = Field(..., min_length=1)
    email: str = Field(..., min_length=1)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@becory
Comment options

Answer selected by becory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants