chore(deps): bump github.com/invopop/validation from 0.3.0 to 0.8.0
Bumps [github.com/invopop/validation](https://github.com/invopop/validation) from 0.3.0 to 0.8.0. - [Commits](https://github.com/invopop/validation/compare/v0.3.0...v0.8.0) --- updated-dependencies: - dependency-name: github.com/invopop/validation dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
committed by
Ralf Haferkamp
parent
d97de49ace
commit
eca3eadbb5
+4
-4
@@ -3,7 +3,7 @@
|
||||
[](https://github.com/invopop/validation/actions/workflows/lint.yaml)
|
||||
[](https://github.com/invopop/validation/actions/workflows/test.yaml)
|
||||
[](http://godoc.org/github.com/invopop/validation)
|
||||
[](https://coveralls.io/github/invopop/validation?branch=main)
|
||||
[](https://codecov.io/gh/invopop/validation)
|
||||
[](https://goreportcard.com/report/github.com/invopop/validation)
|
||||

|
||||
|
||||
@@ -607,14 +607,14 @@ When performing context-aware validation, if a rule does not implement `validati
|
||||
|
||||
The following rules are provided in the `validation` package:
|
||||
|
||||
- `In(...interface{})`: checks if a value can be found in the given list of values.
|
||||
- `NotIn(...interface{})`: checks if a value is NOT among the given list of values.
|
||||
- `In[T any](values ...T)`: checks if a value can be found in the given list of values.
|
||||
- `NotIn[T any](values ...T)`: checks if a value is NOT among the given list of values.
|
||||
- `Length(min, max int)`: checks if the length of a value is within the specified range.
|
||||
This rule should only be used for validating strings, slices, maps, and arrays.
|
||||
- `RuneLength(min, max int)`: checks if the length of a string is within the specified range.
|
||||
This rule is similar as `Length` except that when the value being validated is a string, it checks
|
||||
its rune length instead of byte length.
|
||||
- `Min(min interface{})` and `Max(max interface{})`: checks if a value is within the specified range.
|
||||
- `Min(min any)` and `Max(max any)`: checks if a value is within the specified range.
|
||||
These two rules should only be used for validating int, uint, float and time.Time types.
|
||||
- `Match(*regexp.Regexp)`: checks if a value matches the specified regular expression.
|
||||
This rule should only be used for strings and byte slices.
|
||||
|
||||
Reference in New Issue
Block a user