The error strings are different from the provided error messages to the custom error messages. First ones included the field name. When using this feature from a front application, for example, with the custom error message you don't know which field is referred.
Go validator error message:
password: does not validate as stringlength(3|50)
Custom error messages:
Should have between 3 to 50 chars.
While it should be:
password: Should have between 3 to 50 chars.
I've modified the test to be OK with the new custom messages.
Description
The error strings are different from the provided error messages to the custom error messages. First ones included the field name. When using this feature from a front application, for example, with the custom error message you don't know which field is referred.
Go validator error message:
password: does not validate as stringlength(3|50)
Custom error messages:
Should have between 3 to 50 chars.
While it should be:
password: Should have between 3 to 50 chars.
I've modified the test to be OK with the new custom messages.