Open moyuanhuang opened 1 year ago
Yes as per source code
Required is a validation rule that checks if a value is not empty. A value is considered not empty if
See this pull request in jellydator-validation that makes clear the behavior for booleans with the Required
rule.
Hi, I noticed that when using the
Required
validator against a boolean field with value equalsfalse
, the validator will raiseIs this expected?
Sample code: https://go.dev/play/p/SkiEIx2aaQN