Skip to content

JSON friendly errors #199

@solher

Description

@solher

Currently, the default error message is:

fieldErrMsg = "Key: \"%s\" Error:Field validation for \"%s\" failed on the \"%s\" tag"`

Could you just replace the double quotes by simple ones to be more JSON friendly and to avoid the /" everywhere when marshaled ?

Just:

fieldErrMsg = "Key: '%s' Error:Field validation for '%s' failed on the '%s' tag"`

Amazing work on the validator by the way.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions