Update module gopkg.in/go-playground/validator.v8 to v10 - autoclosed #1012
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v8.18.2
->v10.9.0
Release Notes
go-playground/validator
v10.9.0
Compare Source
What's new?
universal-translator
andlocales
dependencies to their latest versions.v10.8.0
Compare Source
What's new?
zh
missing translations for some tags, thanks @SkyingzZ for the PRv10.7.0
Compare Source
What's new?
v10.6.2
Compare Source
What was fixed?
v10.6.1
Compare Source
What was fixed
url_encoded
validation regex not handling totally unescaped data.v10.6.0
Compare Source
What's new?
required_if
,required_unless
andeqfield
. Thanks @zane-deg for the PRMaintainers
A section has been added to the README regarding a "request for maintainers". I am so happy that the community has embraced this project! and I think that now is a good time to bring on more maintainers to help support the growing user base for timely help, PR reviews and general support.
v10.5.0
Compare Source
What's new?
v10.4.2
Compare Source
What was Fixed?
nefield
. Thanks @Doarakko for the PRv10.4.1
Compare Source
What was fixed?
Fixed an issue where if the param of a time.Durtion type is specified
as an integer, denoting nanosecond precision, instead of time duration
string the validation would panic introduced in https://github.com/go-playground/validator/pull/642
The fix ensures it falls back to the previous expected behaviour.
v10.4.0
Compare Source
What's new?
Merged ton of PR's, thank you everyone for your contributions!
v10.3.0
Compare Source
What's New/Fixed?
New
startsnotwith
&endsnotwith
validations, thanks @metalinspired for the PRFixed
v10.2.0
Compare Source
What's new?
v10.1.0
Compare Source
What's new?
🎄 Merry Christmas: 🎄
🎁 🎁 🎁 🎁 🎁 🎁 🎁 🎁
GetTag
functionality to the FieldLevel interface. Thanks @LRichi for the PRIsunique
functionality to handle the uniqueness of struct fields in an array/slice. Thanks @shihanng for the PRisurl
nill error check, Thanks @whatvn for the PRdatauri
validation regex, Thanks @JonathanWThom for the PReq
validator, Thanks @ghost for the PRoneof
for space-separated strings, Thanks @JonathanWThom for the PRv10.0.1
Compare Source
What was fixed?
Fixed the
required_with*
validation functions that were not properly handling pointers.v10.0.0
Compare Source
What's new?
I wanted v10 to have a bunch of new functionality for everyone but Go Modules has forced my hand a bit.
v9.31.0
Compare Source
What's new?
As of 2019-12-24 v9 is entering maintenance mode. Please direct all PR's to master.
But before this happens, 🎄 Merry Christmas: 🎄
🎁 🎁 🎁 🎁 🎁 🎁 🎁 🎁
GetTag
functionality to the FieldLevel interface. Thanks @LRichi for the PRIsunique
functionality to handle the uniqueness of struct fields in an array/slice. Thanks @shihanng for the PRv9.30.2
Compare Source
What was fixed?
Fixed previous release against wrong branch!
v9.30.1
Compare Source
What was fixed?
Backported some fixes from
v10
for therequired_with*
validation functions.P.S.
I highly recommending updating to
v10
which is justv9
updated to use Go Modules and std import paths rather thangopkg.in
. I will be puttingv9
into maintenance mode soon as I don't have the bandwidth to maintain bothv10
&v9
.v9.30.0
Compare Source
What's new?
What was fixed?
required_with*
behaviour, there were some issues with pointers.v9.29.1
Compare Source
What was fixed?
required_without
validation working with pointers, thanks @leafduo for the PR!v9.29.0
Compare Source
What's new?
Some new and exciting validators have been added, thanks @mashmooli for the PR
please see the docs for usage instructions!
v9.28.0
Compare Source
What's new?
Huge shout out to the community for all the help!
startswith
sndendswith
validations in PR, thanks @thcipriani!uuid_rfc4122
validations in PR, thanks @alexbilbie!v9.27.0
Compare Source
What new?
dir
, thanks @agalal for the PRv9.26.0
Compare Source
What's new?
Added uuid rfc4122 validation, thanks @rssathe for the PR!
v9.25.0
Compare Source
What's new?
Add baked in validators for containsfield and excludesfield, thanks @fharding1 for the PR
What was fixed
Fixed Japanese translations, thanks @akm for the PR
v9.24.0
Compare Source
What's new?
What was fixed?
pt_BR
translation, thanks @AGPDev for the PRunique validation
, thanks @holyspectral for the PRv9.23.0
Compare Source
What's new?
RegisterStructValidation
, thanks @suekto-andreas for the PRv9.22.0
Compare Source
What's new?
RegisterTagNameFunc
documentation in this PR, thanks @frou for the PR!v9.21.1
Compare Source
What was fixed?
Corrected some documentation in this PR and this PR; thanks @44px & @sakura1116vg for the PR's!
v9.21.0
Compare Source
What's new?
Added dutch translations thanks to @wesselvanderlinden and PR #387!
v9.20.2
Compare Source
What was fixed?
Corrected language package name thanks @foolin , wee #381 for details.
v9.20.1
Compare Source
What was fixed?
StructFilteredCtx
not passing the context through, thanks @dvic!, see #380 for details.v9.20.0
Compare Source
What's new?
Added Chinese translations, thanks @foolin! for more details foor #379
v9.19.0
Compare Source
What's new?
3 new validations added:
html
- This validates that a string value appears to be an HTML element tag including those described at https://developer.mozilla.org/en-US/docs/Web/HTML/Elementhtml_encoded
- This validates that a string value is a proper character reference in decimal or hexadecimal formaturl_encoded
- This validates that a string value is percent-encoded (URL encoded) according to https://tools.ietf.org/html/rfc3986#section-2.1for details see PR #377 Thanks @heatwole for the PR!
v9.17.1
Compare Source
What was fixed
A typo in the documentation, thanks @tengis617 for the PR
v9.17.0
Compare Source
Expanded
numeric
&number
validationsIt was originally intended for these to only be used on strings, however
it makes sense to also use them if you are dealing with type
interface{}
So now ints and floats return true for this validation also as they are
both numeric and a number.
v9.16.1
Compare Source
What was fixed?
According to http://www.ietf.org/rfc/rfc1123.txt Hostnames are limited to letters-digits-hyphen, removing underscore as a valid character. see PR #359 for details. Thanks @jadhub for the PR! & @danielpoe for reporting.
v9.16.0
Compare Source
What's new?
gin
upgrade example, see #358 for details, thanks @Ashtonian for the PR!unique
tag to also cover map values, see #361 for details, thanks @jservice-rvbd for the PR!v9.15.0
Compare Source
What's new
Add the following new validations:
Thanks @QuestofIranon for the PR
v9.14.0
Compare Source
What's new?
Added base64url validation according to section 5 of RFC4648 Thanks @kgeorgiou for the PR!
v9.13.0
Compare Source
What's New?
Added Brazilian Portuguese translations see PR #350 Thanks @afranioce
v9.12.0
Compare Source
What's new?
v9.11.0
Compare Source
What's new?
added a new validation
oneof
thanks for the PR @ansel1see details in the PR https://github.com/go-playground/validator/pull/343
v9.10.0
Compare Source
What's new?
Added new validation
hostname_rfc1123
the currenthostname
validation is for RFC 952###I want to use the new hostname validation, but don't want to go around and change my struct tags.
No problem, just register an Alias eg.
v9.9.4
Compare Source
What was fixed?
FieldWithValue
=>VarWithValue
v9.9.3
Compare Source
What was fixed?
Update
tagCache
locking scope to allow forvalidate.Var
andvalidate.VarCtx
to be used from within validations functions. see #335 for details.v9.9.2
Compare Source
What was fixed/updated?
Updated docs to clarify between validation tag separator or
,
and or validation tag separator|
v9.9.1
Compare Source
What was fixed?
There was an issue checking for the end of an or validation block and when 2 consecutive
or
validation blocks existed, it would not return an error or return an incorrect error.NOTE: This bug only affected validation with consecutive
or
validation blocks eg.Thanks for reporting the issue @skryja, see #329 for more details
v9.9.0
Compare Source
What's new?
Added map key validation support with new
keys
andendkeys
eg.keys
must be directly after the dive tag; this was done for efficiency to allow map keys and values to be be handled within the same range.see docs for more details.
v9.8.0
Compare Source
What was added?
Added
unique
validation for ensuringarray|slice
contain unique values.v9.7.0
Compare Source
Whats New?
Added new
isdefault
tag, essentially it's the opposite ofrequired
and only intended for specific use cases. See #299 for more details.What was fixed?
Corrected error in
fqdn
when value is blank, see #306 for more details.v9.6.0
Compare Source
What's new?
Added
hostname
andfqdn
validations thanks to @senuphtyz and PR #298v9.5.0
Compare Source
What new?
Added contextual validation support via
context.Context
: thanks to @thaonx @nuxier and PR #292RegisterValidationCtx(...)
RegisterStructValidationCtx(...)
StructCtx(...)
StructFilteredCtx(...)
StructPartialCtx(...)
StructExceptCtx(...)
VarCtx(...)
VarWithValueCtx(...)
NOTE: in v10 release all old methods will be removed and only new Context methods will remain.
v9.4.0
Compare Source
What's new?
FieldLevel.FieldName()
andFieldLevel.StructFieldName()
_examples
to avoid any potential dependencies in examples being pulled in by go tools.v9.3.6
Compare Source
What was fixed?
v9.3.5
Compare Source
What was fixed?
v9.3.4
Compare Source
What was fixed?
no issues with validator, just updating test.
v9.3.3
Compare Source
What was fixed?
v9.3.2
Compare Source
What was fixed?
Corrected Namespace issue when a field within an array or map of structs causes an error, see #266
Thanks @cbandy for reporting!
v9.3.1
Compare Source
What was fixed?
structonly
did not behave as expected when not accompanied by a struct validation thanks @thessem for reporting in #264 😄v9.3.0
Compare Source
What was added?
alphaunicode
andalphanumunicode
validations which are basically just unicode variants of thealpha
andalphanum
validations that were ASCII only.relates to #261
v9.2.2
Compare Source
What was fixed
update cached fields to be stored in array instead of map for #260 thanks @jonmchan for reporting
v9.2.1
Compare Source
What was fixed?
The
required
tag was not correctly validating pointer fields like the old v8exists
tag ( see issue #142 ) was and so that bug has been corrected. thanks @codepushr for reportingrequired
tag to the restricted tags that cannot be overridden because of it's dual functionality with pointers ( thought it already was, my mistake )v9.2.0
Compare Source
What's new?
Added
StructFiltered(s interface{}, fn FilterFunc)
function to allow for better filtering of fields besidesStructPartial
orStructExcept
for #255thanks @jawher for the idea
v9.1.3
Compare Source
What was fixed?
Explicitly qualify universal-translator imports; thanks @jawher
v9.1.2
Compare Source
What was fixed?
v9.1.1
Compare Source
What was fixed?
iscolor
alias translationrgb|rgba|len=10
was missing the=10
when reporting the tag in errorv9.1.0
Compare Source
What's New?
🎉 This change has been a long time coming 🎉
The story so far....
A long time ago in a validator package on a github server far far away...
A request was made for allowing custom validations #174 but the evil i18n,
localization of errors, stood in our way #230. An expedition was dispatched to
search the vastness open source, but alas no suitable i18n package with correct
pluralization rules could be found; the outlook for validator seemed grim; until a
developer created an i18n and l10n helper package locales and an i18n package
universal-translator that wraps it and then jammed that functionality deep inside of validator!
So without further ado:
RegisterTranslation
en
locale here; if anyone could help in adding more for other locales that would be appreciated 😄v9.0.0
Compare Source
Release 9.0.0
After much work, tweaking and design updates validator v9 has been released!
It's even faster, more efficient and built for ease of use!
Quick overview of changes
documentation has been updated to reflect all of these changes, see them for more details.
ValidationErrors
is now an[]FieldError
instead of a map as before.exists
tag has been removed, nowrequired
tag handles pointer values as well.FieldError
.validate.Field
orvalidate.FieldWithValue
to a struct field only, but that is not the case, any variable can be validated and so the functions have been changed to:And now what veryone wants to see, benchmarks compared to v8
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.