Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4.3.0 #182

Merged
merged 3 commits into from
Apr 29, 2022
Merged

v4.3.0 #182

merged 3 commits into from
Apr 29, 2022

Conversation

System-Glitch
Copy link
Member

Description

  • Added post validation hooks, able to alter the validation result.
r := &validation.Rules{
	Fields: validation.FieldMap{},
	PostValidationHooks: []validation.PostValidationHook{
		func(data map[string]interface{}, errors validation.Errors, now time.Time) Errors {
			// ...
			return errors
		},
	},
}

Possible drawbacks

None

Related issue(s)

@System-Glitch System-Glitch added the enhancement Enhancement of existing feature label Apr 29, 2022
@System-Glitch System-Glitch self-assigned this Apr 29, 2022
@coveralls
Copy link

coveralls commented Apr 29, 2022

Pull Request Test Coverage Report for Build 2244526207

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.0006%) to 99.024%

Totals Coverage Status
Change from base Build 2207635183: 0.0006%
Covered Lines: 4669
Relevant Lines: 4715

💛 - Coveralls

@System-Glitch System-Glitch merged commit a65e0b0 into master Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants