Skip to content

Validation does not work with custom types #7

@adnanbrq

Description

@adnanbrq

Validating custom types can cause unexpected panic.

Example of a custom type:

type Gender string

const (
      GenderMale Gender= "male"
      GenderFemale = "female"
)

If we then try to validate something of this type with, say, the string rule, we get a panic.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions