Skip to content

Releases: go-playground/validator

Release 5

10 Apr 04:50
Compare
Choose a tag to compare

renamed repo from go-validate-yourself to validator for better go package and library naming ( more idiomatic )
updated function name to be more go idiomatic for example instead of ValidateStruct it's just Struct

example: validate := validator.New("validate", validator.BakedInFunctions)
validate.Struct(struct)
validate.Field(field, tag)
validate.FieldWithValue(field, value, tag)

I hope this change isn't too disruptive, but believe these changes were needed for a truly production and community ready library.

Release 4.0.4

10 Apr 00:55
Compare
Choose a tag to compare

Updates for transfer to organization bluesuncorp

Release 4.0.3

08 Apr 22:30
Compare
Choose a tag to compare

Updated based of pull request from @manucorporat thanks for the updates!
Updated a few minor documentation errors

Release 4.0.1

06 Apr 01:16
Compare
Choose a tag to compare

Correct documentation for creating a new validator for ".New" to ".NewValidator" thanks to @chrisscott

Release 4.0

23 Mar 14:59
Compare
Choose a tag to compare

Correct Cross Field Validation
Add current Level struct to validation routine or comparative valie if validating by field instead of struct.

Release 3.0.2

21 Mar 17:43
Compare
Choose a tag to compare

add "structonly" tag for when you wish to validate the struct but not it's containing fields

Release 3.0.1

19 Mar 19:59
Compare
Choose a tag to compare

correct call to wrong function

Release 3.0

11 Mar 04:15
Compare
Choose a tag to compare

removed internal validator

Release 2.3

11 Mar 03:39
Compare
Choose a tag to compare

add generic cross field validation for Number and time.Time types

Release 2.2

10 Mar 22:02
Compare
Choose a tag to compare

Add returning of Type along with Kind for type specific messaging for the referencing app.