Skip to content

fix: update dependencies and fix kin-openapi v0.134.0 compatibility#803

Merged
reuvenharrison merged 1 commit intomainfrom
fix/kin-openapi-v0134-compat
Mar 14, 2026
Merged

fix: update dependencies and fix kin-openapi v0.134.0 compatibility#803
reuvenharrison merged 1 commit intomainfrom
fix/kin-openapi-v0134-compat

Conversation

@reuvenharrison
Copy link
Collaborator

Summary

  • Updated go.mod dependencies, including kin-openapi to v0.134.0
  • StringMap became generic (StringMap[V any]) in v0.134.0, and Discriminator.Mapping changed type from StringMap to StringMap[MappingRef]
  • Removed openapi3 import from string_map_diff.go; use plain map[string]string instead
  • Added mappingToStringMap helper in discriminator_diff.go to convert StringMap[MappingRef]map[string]string via MappingRef.Ref
  • Updated TestViper_InvalidFlag: mapstructure v2.5.0 now includes the struct type name in validation error messages ('internal.Config' instead of '')

Test plan

  • go build ./... passes
  • go test ./diff/... passes
  • go test ./internal/... passes

🤖 Generated with Claude Code

Updated go.mod dependencies including kin-openapi to v0.134.0.

StringMap became generic (StringMap[V any]) in v0.134.0, and
Discriminator.Mapping changed from StringMap to StringMap[MappingRef].

- Remove openapi3 import from string_map_diff.go; use plain map[string]string
- Add mappingToStringMap helper in discriminator_diff.go to convert
  StringMap[MappingRef] → map[string]string via MappingRef.Ref
- Update TestViper_InvalidFlag: mapstructure v2.5.0 now includes the
  struct type name in validation error messages

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@reuvenharrison reuvenharrison merged commit eef14e2 into main Mar 14, 2026
14 checks passed
@reuvenharrison reuvenharrison deleted the fix/kin-openapi-v0134-compat branch March 14, 2026 16:15
@codecov-commenter
Copy link

codecov-commenter commented Mar 14, 2026

Codecov Report

❌ Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.29%. Comparing base (91a067d) to head (8004e6c).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
diff/discriminator_diff.go 66.66% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #803      +/-   ##
==========================================
- Coverage   89.30%   89.29%   -0.02%     
==========================================
  Files         240      240              
  Lines       12710    12715       +5     
==========================================
+ Hits        11351    11354       +3     
- Misses        905      906       +1     
- Partials      454      455       +1     
Flag Coverage Δ
unittests 89.29% <75.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.

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