Releases: golodash/galidator
Releases · golodash/galidator
v2.0.1
v2.0.0
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
v1.4.3
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
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
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
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
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
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
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.