Skip to content

fix: validator had a bug where required on pointer fields was applied…#172

Merged
alexferl merged 1 commit into
masterfrom
fix/required_pointer_fields
May 5, 2026
Merged

fix: validator had a bug where required on pointer fields was applied…#172
alexferl merged 1 commit into
masterfrom
fix/required_pointer_fields

Conversation

@alexferl

@alexferl alexferl commented May 5, 2026

Copy link
Copy Markdown
Owner

… twice - once to check the pointer was non-nil (correct), and again on the dereferenced value (incorrect). So *float64 pointing to 0

failed because 0 is the zero value for float64.

… twice - once to check the pointer was non-nil (correct), and again on the dereferenced value (incorrect). So *float64 pointing to 0

failed because 0 is the zero value for float64.

Signed-off-by: alexferl <me@alexferl.com>
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 25393580746

Coverage increased (+0.04%) to 94.0%

Details

  • Coverage increased (+0.04%) from the base build.
  • Patch coverage: 7 of 7 lines across 1 file are fully covered (100%).
  • 7 coverage regressions across 4 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

7 previously-covered lines in 4 files lost coverage.

File Lines Losing Coverage Coverage
internal/bind/registry.go 2 82.89%
sse/sse.go 2 95.24%
validator/registry.go 2 97.26%
server.go 1 89.36%

Coverage Stats

Coverage Status
Relevant Lines: 11284
Covered Lines: 10607
Line Coverage: 94.0%
Coverage Strength: 423.88 hits per line

💛 - Coveralls

@alexferl alexferl merged commit ce02c6a into master May 5, 2026
9 checks passed
@alexferl alexferl deleted the fix/required_pointer_fields branch May 5, 2026 18:08
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