Repository navigation
Conversation
The module github.com/insei/valigo/gin: New is the binding.StructValidator of gin, so the binding methods validate by valigo, slices element by element; Validate validates with the languages of the Accept-Language header of the request.
scripts/modules.sh lists the modules, the workflow, check-coverage.sh and check-examples.sh loop over it; the gin module is added.
Contributor
Benchmark diff:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #66 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 33 34 +1
Lines 1063 1085 +22
=========================================
+ Hits 1063 1085 +22 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The module
github.com/insei/valigo/gin:binding.Validator = vgin.New(v)—c.ShouldBindJSONand the other binding methods validate by valigo; slices element by element with the index in the location ([1].email), non-structs are skipped, asbinding.StructValidatorrequires.vgin.Validate(c, v, &req)validates with the languages ofAccept-Language(gin passes no request to its validator).shared.Errorsof feat(shared): Errors, the errors of a validation as one error #65, the page shows it written as problem details.ci: the modules are listed once inscripts/modules.sh, the workflow and the scripts loop over it, so the next module (echo) is one word. 100% coverage, tests with a real gin engine.