# Functions
No description provided by the author
Email validates a field that should contain an email address.
Enum returns a validation rule that checks that value is one of the allowed strings.
Fail is a convenience function for returning a failure with one or more problems.
No description provided by the author
MutuallyExclusive returns a validation rule that checks that at most one of the fields is set to a non-zero value.
RequireAnyOf returns a validation rule that checks that at least one of the fields is set to a non-zero value.
Required checks that the value does not have a zero value.
RequireOneOf returns a validation rule that checks that exactly one of the fields is set to a non-zero value.
ReservedStrings returns a validation that checks that value does not match any of the strings in values.
Validate that the values in the Request struct are valid according to the validation rules defined on the struct.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
Failure describes a validation failures.
Field is used to construct validation rules that incorporate multiple fields.
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
Request is implemented by all request structs.
ValidationRule performs validation on one or more struct fields and can describe the validation for public API documentation.
# Type aliases
Error is a map of field names to errors associated with those fields.
ValidatorFunc wraps a function so that it implements ValidationRule.