Skip to content

Releases: golodash/galidator

v2.0.1

16 May 06:05
Compare
Choose a tag to compare

Galidator v2.0.1 🎉

Minor Changes:

  • Style: Just a simple extra print line which was left, removed.

Galidator is a general use case validator for golang.

v2.0.0

07 May 16:01
Compare
Choose a tag to compare

Galidator v2.0.0 🎉

Major Changes:

  • Feat: A context now goes through the custom validators to be able to pass data to the isolated validator.

Galidator is a general use case validator for golang.

v1.4.4

07 May 14:51
Compare
Choose a tag to compare

Galidator v1.4.4 🎉

Patch Changes:

  • Bug Fix: #11 issue is fixed.

Galidator is a general use case validator for golang.

v1.4.3

10 Oct 08:55
Compare
Choose a tag to compare

Galidator v1.4.3 🎉

Patch Changes:

  • Bug Fix: Add custom messages for rules with params is now possible for binding tags.

Galidator is a general use case validator for golang.

v1.4.2

21 Aug 07:36
Compare
Choose a tag to compare

Galidator v1.4.2 🎉

Patch Changes:

  • Unexported fields for structs will get ignored to prevent unwanted behaviors

Galidator is a general use case validator for golang.

v1.4.1

20 Aug 11:07
Compare
Choose a tag to compare

Galidator v1.4.1 🎉

Patch Changes:

  • WhenNotExistAll and WhenNotExistOne were not usable in tags
  • Validator method does not add a type check rule anymore in creating validator from struct instance
  • Bug fixed after passing AlwaysCheckRules

Galidator is a general use case validator for golang.

v1.4.0

20 Aug 09:04
Compare
Choose a tag to compare

Galidator v1.4.0 🎉

Minor Changes:

  • WhenNotExistOne method added to ruleSet which will make the parameter to be required if at least one of the items passed is
  • WhenNotExistAll method added to ruleSet which will make the parameter to be required in
  • AlwaysCheckRules method added to ruleSet which causes the rules to always get checked regardless of the value itself
  • $field name in error messages will get translated
  • Custom validators will get passed from generators to ruleSet
  • RegisteredCustom method added to rulseSet which make custom validators defined in generator possible

Galidator is a general use case validator for golang.

v1.3.5

19 Aug 08:34
Compare
Choose a tag to compare

Galidator v1.3.5 🎉

Patch Changes:

  • When changing the error messages of a rule in tag section of a struct element, use _ at the start of every rule or some rules if they have conflict with another tag which is used for another purpose.
    • example:
type Example struct {
	Field string `json:"field" binding:"required,json" _json:"$field is not json"`
}

As you can see, json tag means something else, so to fix the behavior of the galidator to not use the json tag, we use _json tag.

Galidator is a general use case validator for golang.

v1.3.4

11 Jul 19:28
Compare
Choose a tag to compare

Galidator v1.3.4 🎉

Patch Changes:

  • Small bug on children rules having to have a value to be assigned to them in tag rule assigns

Galidator is a general use case validator for golang.

v1.3.3

10 Jul 07:34
Compare
Choose a tag to compare

Galidator v1.3.3 🎉

Patch Changes:

  • Small bug on Phone rule fixed.
  • Small bug on setDefaultOn function fixed.

Galidator is a general use case validator for golang.