Skip to content

Map validation failing with ISO Codes #1354

@ltns35

Description

@ltns35
  • [x ] I have looked at the documentation here first?
  • [ x] I have looked at the examples provided that may showcase my question here?

Package version eg. v10: v10.23.0

Question:

How can I validate the following map[string]string? It's failing me always with the ISO code but everything is correct.

Code sample, to showcase or reproduce:

Translations map[string]string `validate:"min=1,dive,keys,iso3166_1_alpha2,endkeys,required"`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions