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
Issue, Question or Enhancement:
When trying to use the required_if validator, the app panics:
panic: Undefined validation function 'required_if:Type type_1' on field 'ResourceID'
When looking for a solution, the most common suggestion is to check which version is being used. This was introduced in v10.4, so using any older version could cause this panic. It's not the case here, though, as can be seen in the logs below where version is 10.11.
Tanks in advance for any help!
Code sample, to showcase or reproduce:
This snippet can also be found (in the playground)[https://go.dev/play/p/OfydNe1Gv-g]
Package version eg. v9, v10:
v10
Issue, Question or Enhancement:
When trying to use the
required_if
validator, the app panics:When looking for a solution, the most common suggestion is to check which version is being used. This was introduced in v10.4, so using any older version could cause this panic. It's not the case here, though, as can be seen in the logs below where version is 10.11.
Tanks in advance for any help!
Code sample, to showcase or reproduce:
This snippet can also be found (in the playground)[https://go.dev/play/p/OfydNe1Gv-g]
Trace:
The text was updated successfully, but these errors were encountered: