Documentation ¶
Index ¶
- func IsDivisibleBy(denominator int32) validator.Int32
- func IsGreaterThanEqualToPathValue(pathExpression path.Expression) validator.Int32
- func IsGreaterThanPathValue(pathExpression path.Expression) validator.Int32
- func IsLessThanEqualToPathValue(pathExpression path.Expression) validator.Int32
- func IsLessThanPathValue(pathExpression path.Expression) validator.Int32
- func RegexMatchesPathValue(regexp *regexp.Regexp, message string, expressions ...path.Expression) validator.Int32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDivisibleBy ¶
IsDivisibleBy checks if an int32 is exactly divisible by the provided denominator.
func IsGreaterThanEqualToPathValue ¶
func IsGreaterThanEqualToPathValue(pathExpression path.Expression) validator.Int32
IsGreaterThanPathValue checks if an int32 is greater than the value configured in the provided path expression.
func IsGreaterThanPathValue ¶
func IsGreaterThanPathValue(pathExpression path.Expression) validator.Int32
IsGreaterThanPathValue checks if an int32 is greater than the value configured in the provided path expression.
func IsLessThanEqualToPathValue ¶
func IsLessThanEqualToPathValue(pathExpression path.Expression) validator.Int32
IsLessThanPathValue checks if an int32 is greater than the value configured in the provided path expression.
func IsLessThanPathValue ¶
func IsLessThanPathValue(pathExpression path.Expression) validator.Int32
IsLessThanPathValue checks if an int32 is greater than the value configured in the provided path expression.
func RegexMatchesPathValue ¶
func RegexMatchesPathValue(regexp *regexp.Regexp, message string, expressions ...path.Expression) validator.Int32
RegexMatchesPathValue validates if the provided regex matches the value at the provided path expression(s). If a list of expressions is provided, all expressions are checked until a match is found, or the list of expressions is exhausted.
Types ¶
This section is empty.