Skip to content

Option to show full display name or not in error message #28

@typerandom

Description

@typerandom

We should add an option of whether to use the full display name or not in the error message. This because in some cases showing the full display name makes the errors less user friendly. Especially if they are being shown to non developers. Also not having this option makes it troublesome if one would like to use a custom display name using SetDisplayNameTag(tagName).

Suggestion
defaultValidator := validator.Default()
defaultValidator.UseFullDisplayNameInError(false) // default is true

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions