You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have looked at the examples provided that may showcase my question here?
Package version eg. v9, v10:
v10 v10.23.0
Issue, Question or Enhancement:
When I have additional validation tag (file in my case) added to the field with tag required_with and the required_with condition is not fulfilled, then I expect that any additional validation will not be run as the field is legally not set. Instead, the additional file validation is still being run on unset field and fails. I tried using | as suggested in #570 , but that doesn't work either - in this case it seems like after fulfilling required_with conditions, the additional validation is not run at all.
confEmpty error: Key: 'Config.Field1' Error:Field validation for'Field1' failed on the 'file' tag
Key: 'Config.Field2' Error:Field validation for'Field2' failed on the 'file' tag
confOr validation success
The text was updated successfully, but these errors were encountered:
This should fix your issue. If the first validation didn't do anything, it can just skip anything afterward. Please close the issue if this fixes your problem.
Package version eg. v9, v10:
v10 v10.23.0
Issue, Question or Enhancement:
When I have additional validation tag (
file
in my case) added to the field with tagrequired_with
and therequired_with
condition is not fulfilled, then I expect that any additional validation will not be run as the field is legally not set. Instead, the additionalfile
validation is still being run on unset field and fails. I tried using|
as suggested in #570 , but that doesn't work either - in this case it seems like after fulfillingrequired_with
conditions, the additional validation is not run at all.Code sample, to showcase or reproduce:
The text was updated successfully, but these errors were encountered: