Keats / validator

Simple validation for Rust structs
MIT License
1.97k stars 141 forks source link

empty str can pass validator #281

Closed MateSoftware2023 closed 8 months ago

MateSoftware2023 commented 9 months ago

" " can pass -> length(min = 1) any other validate fn supported , dont pass empty str

omercotkd commented 8 months ago

The string you provided is not empty you have a whitespace char, therefore his length is indeed one. If the whitespace is not intentional provide a code example. @MateSoftware2023

MateSoftware2023 commented 8 months ago

thanks, i used custom validtor to solve this issue,