We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
false
Hi, I noticed that when using the Required validator against a boolean field with value equals false, the validator will raise
Required
FIELD_NAME: cannot be blank.
Is this expected?
Sample code: https://go.dev/play/p/SkiEIx2aaQN
The text was updated successfully, but these errors were encountered:
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
Sorry, something went wrong.
validation.Required
See this pull request in jellydator-validation that makes clear the behavior for booleans with the Required rule.
jellydator#18
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: