Closed rozanecm closed 1 year ago
Not required_if:
but required_if=
Can't believe this; thank you!! Much appreciated!
@rozanecm It'd be good to close this issue. notion of having too many issues would be definitely misleading the choice of opting this lib :)
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: