always: false doesn't take any effect #2337
Labels
status: needs triage
Issues which needs to be reproduced to be verified report.
type: fix
Issues describing a broken feature.
Description
I can see in the documentation there is an option called
always: true
which is used in combination with groups to force the field to be validated in all cases, however, I think this defeats the purpose of groups, because if I want to set groups so I don't want the validation to be applied on all cases. This is not the point, the point here is: if I definealways: false
the validation still be applied however I expect it should not be applied!Minimal code-snippet showcasing the problem
This is the validation function
Expected behavior
I expect when calling the validate function without specifying any group name then it should validate the object by ignoring the validations with groups or I should have an option to specify it called for example
ignore: true | false
Actual behavior
It raises a validation error from the validation constraints that are specified with groups however it shouldn't
The text was updated successfully, but these errors were encountered: