Skip to content

v1.3.5

Compare
Choose a tag to compare
@maktoobgar maktoobgar released this 19 Aug 08:34
· 19 commits to main since this release

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.