Skip to content

feat(shared): Errors, the errors of a validation as one error - #65

Merged
Insei merged 1 commit into
mainfrom
feat/shared-errors
Oct 19, 2026
Merged

Insei merged 1 commit into
mainfrom
feat/shared-errors

Conversation

@Insei

@Insei Insei commented Oct 19, 2026

Copy link
Copy Markdown
Owner

shared.Errors is []shared.Error implementing error (the errors joined by ; ), for the validator interfaces of gin and echo that return one error; errors.As(err, &errs) gets the errors back. The adapters of the next pull requests return it.

The validator interfaces of gin and echo return one error, shared.Errors
keeps the errors of valigo in it, errors.As gets them back.
@github-actions

Copy link
Copy Markdown
Contributor

Benchmark diff: fd6877f → 4b17e9d (10 runs)

goos: linux
goarch: amd64
pkg: github.com/insei/valigo
cpu: AMD EPYC 9V45 96-Core Processor                
           │  base.txt   │           head.txt            │
           │   sec/op    │   sec/op     vs base          │
Validate-4   127.6n ± 1%   129.0n ± 3%  ~ (p=0.065 n=10)

           │  base.txt  │            head.txt            │
           │    B/op    │    B/op     vs base            │
Validate-4   0.000 ± 0%   0.000 ± 0%  ~ (p=1.000 n=10) ¹
¹ all samples are equal

           │  base.txt  │            head.txt            │
           │ allocs/op  │ allocs/op   vs base            │
Validate-4   0.000 ± 0%   0.000 ± 0%  ~ (p=1.000 n=10) ¹
¹ all samples are equal

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (fd6877f) to head (660a6ef).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #65   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           33        33           
  Lines         1057      1063    +6     
=========================================
+ Hits          1057      1063    +6     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Insei
Insei merged commit 9dba248 into main Oct 19, 2026
6 checks passed
@Insei
Insei deleted the feat/shared-errors branch October 19, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants