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: 9 comments 17 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.
-
|
Why aren't the people feeling smart by answering "just do .min(1)" see how stupid this is?! |
Beta Was this translation helpful? Give feedback.
-
|
For those coming to this discussion from google, |
Beta Was this translation helpful? Give feedback.
-
|
the deprecation here seems kind of random and counterproductive. It's really subjective whether or not Edit: Oh lol just saw it's undeprecated now, good call |
Beta Was this translation helpful? Give feedback.
-
|
Why was |
Beta Was this translation helpful? Give feedback.
-
|
@FabioZan86 - use this as a starter |
Beta Was this translation helpful? Give feedback.
I'm confused by your example, doesn't
.min(6)cover your.nonemptycase? I would assume Password must be longer than 6 characters covers that it's required..min(1)would cover.nonempty()in other cases