README
¶
a zero dependency performant validation library
Rules
Name | Description | Status |
---|---|---|
required | not nil or zero value | ✅ |
default | default value | ✅ |
enum | one of a set of options | ⌛ |
String
Name | Description | Status |
---|---|---|
pattern | match regular expression | ✅ |
format | match format | ✅ |
min | min length | ✅ |
max | max length | ✅ |
Numeric
Name | Description | Status |
---|---|---|
min | minimum | ✅ |
max | maximum | ✅ |
Formats
Name | Status |
---|---|
date_time | ✅ |
✅ | |
ipv4 | ✅ |
ipv6 | ✅ |
uri | ✅ |
uuid | ✅ |
Click to show internal directories.
Click to hide internal directories.