nonempty is deprecated #2847
-
Hello, what reason to make it obsolete? How am I going to display this message now that the field is mandatory?
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 10 replies
-
I have the same question, what I have to use now? |
Beta Was this translation helpful? Give feedback.
-
I'm confused by your example, doesn't |
Beta Was this translation helpful? Give feedback.
-
@samchungy I didn't understand what you meant. I just want to inform you that the field is mandatory. I don't want to inform you that the minimum is 6 to be mandatory. Every time the lib is being updated it becomes difficult to stay secure. I don't know why 'not empty' became obsolete! |
Beta Was this translation helpful? Give feedback.
-
What about strings? Which method would assume |
Beta Was this translation helpful? Give feedback.
I'm confused by your example, doesn't
.min(6)
cover your.nonempty
case? I would assume Password must be longer than 6 characters covers that it's required..min(1)
would cover.nonempty()
in other cases