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
=== RUN TestOneof
--- FAIL: TestOneof (0.00s)
panic: Undefined validation function 'active'' on field 'Status' [recovered]
panic: Undefined validation function 'active'' on field 'Status'
The text was updated successfully, but these errors were encountered:
Did you try using the escaped version? Comma is the default separator so you usually need to escape the comma using 0x2C. This is noted in the documentation. The hex code, when used in the validator tag, appears to be case sensitive so 0x2c will not work either (though it won't panic).
Package version eg. v9, v10:
v10
Issue, Question or Enhancement:
I want to limit the status value only to be 'active' or 'active,inactive', but it return panic.
Code sample, to showcase or reproduce:
result
The text was updated successfully, but these errors were encountered: