This module provides the validation result
A FormResult
represents the result of a form validation. There are
3 different states :
Valid
reprensents a successful validation and holds the form resultInvalid
reprensents a failed validation and holds the form errorsError
represents a misconfigured form and holds the configuration errorsA ConfigError
represents a configuration error on a Field
. It usually
happens when there is an error in the Fields
or the Validate
function :
MissingField
when the field cannot be foundWrongType
when the field has a different type of Value
Note: if you have trouble debugging those errors have a look at the README troubleshooting section