Currently, the Validate function returns validation errors as a combined string.
It makes the client difficult to show custom messages to users.
In this PR, I added another function ValidateWithErrorSlice to return an error slice so the caller can handle errors properly.
Currently, the
Validate
function returns validation errors as a combined string. It makes the client difficult to show custom messages to users. In this PR, I added another functionValidateWithErrorSlice
to return an error slice so the caller can handle errors properly.