summaryrefslogtreecommitdiff
path: root/vendor/github.com/go-playground/validator/v10/doc.go
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2023-05-22 09:17:48 +0200
committerLibravatar GitHub <noreply@github.com>2023-05-22 09:17:48 +0200
commitea1bbacf4b51628f55bc831f511ce60ddb72d71c (patch)
treef90266529625a01090a45500b8a017722047a5dd /vendor/github.com/go-playground/validator/v10/doc.go
parent[chore] Replace pinafore with semaphore (#1801) (diff)
downloadgotosocial-ea1bbacf4b51628f55bc831f511ce60ddb72d71c.tar.xz
[chore]: Bump github.com/go-playground/validator/v10 (#1812)
Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator) from 10.13.0 to 10.14.0. - [Release notes](https://github.com/go-playground/validator/releases) - [Commits](https://github.com/go-playground/validator/compare/v10.13.0...v10.14.0) --- updated-dependencies: - dependency-name: github.com/go-playground/validator/v10 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com/go-playground/validator/v10/doc.go')
-rw-r--r--vendor/github.com/go-playground/validator/v10/doc.go25
1 files changed, 12 insertions, 13 deletions
diff --git a/vendor/github.com/go-playground/validator/v10/doc.go b/vendor/github.com/go-playground/validator/v10/doc.go
index f31a7d538..f5aa9e523 100644
--- a/vendor/github.com/go-playground/validator/v10/doc.go
+++ b/vendor/github.com/go-playground/validator/v10/doc.go
@@ -863,7 +863,6 @@ This validates that a string value is a valid JWT
Usage: jwt
-
# File
This validates that a string value contains a valid file path and that
@@ -872,6 +871,15 @@ This is done using os.Stat, which is a platform independent function.
Usage: file
+# Image path
+
+This validates that a string value contains a valid file path and that
+the file exists on the machine and is an image.
+This is done using os.Stat and github.com/gabriel-vasile/mimetype
+
+ Usage: image
+
+# URL String
# File Path
@@ -881,7 +889,6 @@ This is done using os.Stat, which is a platform independent function.
Usage: filepath
-
# URL String
This validates that a string value contains a valid url
@@ -923,7 +930,6 @@ you can use this with the omitempty tag.
Usage: base64url
-
# Base64RawURL String
This validates that a string value contains a valid base64 URL safe value,
@@ -934,7 +940,6 @@ you can use this with the omitempty tag.
Usage: base64url
-
# Bitcoin Address
This validates that a string value contains a valid bitcoin address.
@@ -1267,7 +1272,6 @@ This is done using os.Stat, which is a platform independent function.
Usage: dir
-
# Directory Path
This validates that a string value contains a valid directory but does
@@ -1278,7 +1282,6 @@ may not exist at the time of validation.
Usage: dirpath
-
# HostPort
This validates that a string value contains a valid DNS hostname and port that
@@ -1350,7 +1353,6 @@ More information on https://semver.org/
Usage: semver
-
# CVE Identifier
This validates that a string value is a valid cve id, defined in cve mitre.
@@ -1358,17 +1360,15 @@ More information on https://cve.mitre.org/
Usage: cve
-
# Credit Card
This validates that a string value contains a valid credit card number using Luhn algorithm.
Usage: credit_card
-
# Luhn Checksum
- Usage: luhn_checksum
+ Usage: luhn_checksum
This validates that a string or (u)int value contains a valid checksum using the Luhn algorithm.
@@ -1376,8 +1376,7 @@ This validates that a string or (u)int value contains a valid checksum using the
This validates that a string is a valid 24 character hexadecimal string.
- Usage: mongodb
-
+ Usage: mongodb
# Cron
@@ -1385,7 +1384,7 @@ This validates that a string value contains a valid cron expression.
Usage: cron
-Alias Validators and Tags
+# Alias Validators and Tags
Alias Validators and Tags
NOTE: When returning an error, the tag returned in "FieldError" will be