# Functions
BindBody decodes a http request's JSON body to the provided validatable interface and returns a Result indicating if the decode process was successful.
BindBodyAndValidate binds a request's JSON body to the provided Validatable interface, validates the fields on the schema using validator, and finally calls validate on the Validatable schema.
BindQuery decodes a http request's URL query parameters to the provided validatable interface and returns a Result indicating if the decode process was successful.
BindQueryAndValidate binds a request's URL query parameters to the provided Validatable interface, validates the fields on the schema using validator, and finally calls validate on the Validatable schema.
FieldsFailure is a shortcut for creating a new failed validation result with field errors.
MarshalValidationErrors converts validator ValidationErrors into field errors, using the tag as the Code attribute.
SchemaFailure is a shortcut for create a new failed validation result with schema errors.
Success is shortcut for creating a new successful validation result.
Validate checks for field errors on the provided Validatable interface using validator and calls the Validate function on the validatable struct.
ValidateFields validates the field validation tags on the provided schema, returning a Result.
# Structs
FieldError represents an error associated with a single field in a validatable struct.
Result indicates if a call to validate was successful and contains the errors associated with a failed validation.
SchemaError represents an error associated with the entire validatable struct or a collection of one or more fields.
ValidateSuccess provides a Validate function to other structs that need to implement Validatable but only require the basic field level validation provided by the validation attribute tags.
# Interfaces
Validatable defines an interface for structs that can be validated, returning a Result.
# Type aliases
ErrorCode is used to assign a text code to a validation error.