Skip to content

Implement keys and endkeys (like GoValidator) #48

Description

@alexgarzao

After #7 finished, it's necessary a way to validate the keys in a map field.

GoValidator uses the keys and endkeys to determine when a validation must be executed on the keys (default is on the values).

From GoValidator docs:
"These are to be used together directly after the dive tag and tells the validator that anything between 'keys' and 'endkeys' applies to the keys of a map and not the values; think of it like the 'dive' tag, but for map keys instead of values. Multidimensional nesting is also supported, each level you wish to validate will require another 'keys' and 'endkeys' tag. These tags are only valid for maps."

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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