# Functions
All returns a SchemaValidateFunc which tests if the provided value passes all provided SchemaValidateFunc lint:ignore SA1019 SDKv2 migration - staticcheck's own linter directives are currently being ignored under golanci-lint.
Any returns a SchemaValidateFunc which tests if the provided value passes any of the provided SchemaValidateFunc
lint:ignore SA1019 SDKv2 migration - staticcheck's own linter directives are currently being ignored under golanci-lint.
FloatAtLeast returns a SchemaValidateFunc which tests if the provided value is of type float and is at least min (inclusive).
FloatBetween returns a SchemaValidateFunc which tests if the provided value is of type float64 and is between min and max (inclusive).
FloatInSlice returns a SchemaValidateFunc which tests if the provided value is of type float64 and matches the value of an element in the valid slice.
IntAtLeast returns a SchemaValidateFunc which tests if the provided value is of type int and is at least min (inclusive).
IntAtMost returns a SchemaValidateFunc which tests if the provided value is of type int and is at most max (inclusive).
IntBetween returns a SchemaValidateFunc which tests if the provided value is of type int and is between min and max (inclusive).
IntDivisibleBy returns a SchemaValidateFunc which tests if the provided value is of type int and is divisible by a given number.
IntInSlice returns a SchemaValidateFunc which tests if the provided value is of type int and matches the value of an element in the valid slice.
IntNotInSlice returns a SchemaValidateFunc which tests if the provided value is of type int and matches the value of an element in the valid slice.
No description provided by the author
No description provided by the author
IsCIDR is a SchemaValidateFunc which tests if the provided value is of type string and a valid CIDR.
IsDayOfTheWeek id a SchemaValidateFunc which tests if the provided value is of type string and a valid english day of the week.
No description provided by the author
No description provided by the author
IsIPAddress is a SchemaValidateFunc which tests if the provided value is of type string and is a single IP (v4 or v6).
IsIPv4Address is a SchemaValidateFunc which tests if the provided value is of type string and a valid IPv4 address.
IsIPv4Range is a SchemaValidateFunc which tests if the provided value is of type string, and in valid IP range.
IsIPv6Address is a SchemaValidateFunc which tests if the provided value is of type string and a valid IPv6 address.
No description provided by the author
IsMonth id a SchemaValidateFunc which tests if the provided value is of type string and a valid english month.
No description provided by the author
IsPortNumber is a SchemaValidateFunc which tests if the provided value is of type string and a valid TCP Port Number.
No description provided by the author
IsRFC3339Time is a SchemaValidateFunc which tests if the provided value is of type string and a valid RFC33349Time.
No description provided by the author
IsURLWithHTTPorHTTPS is a SchemaValidateFunc which tests if the provided value is of type string and a valid HTTP or HTTPS URL.
IsURLWithHTTPS is a SchemaValidateFunc which tests if the provided value is of type string and a valid HTTPS URL.
IsURLWithPath is a SchemaValidateFunc that tests if the provided value is of type string and a valid URL with a path.
IsURLWithScheme is a SchemaValidateFunc which tests if the provided value is of type string and a valid URL with the provided schemas.
IsUUID is a ValidateFunc that ensures a string can be parsed as UUID.
No description provided by the author
None returns a SchemaValidateFunc which tests if the provided value returns errors for all of the provided SchemaValidateFunc.
NoZeroValues is a SchemaValidateFunc which tests if the provided value is not a zero value.
No description provided by the author
No description provided by the author
No description provided by the author
StringDoesNotContainAny returns a SchemaValidateFunc which validates that the provided value does not contain any of the specified Unicode code points in chars.
StringInSlice returns a SchemaValidateFunc which tests if the provided value is of type string and matches the value of an element in the valid slice will test with in lower case if ignoreCase is true.
StringIsBase64 is a ValidateFunc that ensures a string can be parsed as Base64.
StringIsEmailAddress validates that the given string is a valid email address ([email protected]).
StringIsEmpty is a ValidateFunc that ensures a string has no characters.
No description provided by the author
StringIsJSON is a SchemaValidateFunc which tests to make sure the supplied string is valid JSON.
StringIsNotEmpty is a ValidateFunc that ensures a string is not empty.
StringIsNotWhiteSpace is a ValidateFunc that ensures a string is not empty or consisting entirely of whitespace characters.
StringIsValidRegExp returns a SchemaValidateFunc which tests to make sure the supplied string is a valid regular expression.
StringLenBetween returns a SchemaValidateFunc which tests if the provided value is of type string and has length between min and max (inclusive).
StringMatch returns a SchemaValidateFunc which tests if the provided value matches a given regexp.
StringNotInSlice returns a SchemaValidateFunc which tests if the provided value is of type string and does not match the value of any element in the invalid slice will test with in lower case if ignoreCase is true.
ValidateDiag wraps a SchemaValidateFunc to build a Diagnostics from the warning and error slices.