Skip to content

Conversation

@fredbi
Copy link
Member

@fredbi fredbi commented Jan 11, 2026

Change type

Please select: 🆕 New feature or enhancement|🔧 Bug fix'|📃 Documentation update

Short description

Fixes

Full description

Checklist

  • I have signed all my commits with my name and email (see DCO. This does not require a PGP-signed commit
  • I have rebased and squashed my work, so only one commit remains
  • I have added tests to cover my changes.
  • I have properly enriched go doc comments in code.
  • I have properly documented any breaking change.

This adapts stretchr#1803.

We have adopted slightly different design choices:
* we think checking for nil and reflect.Invalid is a legit use case
* we prefer to use [reflect.Value.Kind] over [reflect.Type.Kind] so as
  to reflect the concrete type of the object.

This way  we don't have to handle the case when [reflect.TypeOf] is nil,
which again may well be a legitimate assertion.

Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
@codecov
Copy link

codecov bot commented Jan 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.76%. Comparing base (21cd9d4) to head (a92f2c8).
⚠️ Report is 3 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #32      +/-   ##
==========================================
+ Coverage   88.69%   88.76%   +0.07%     
==========================================
  Files          63       63              
  Lines        8338     8436      +98     
==========================================
+ Hits         7395     7488      +93     
- Misses        779      782       +3     
- Partials      164      166       +2     

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

@fredbi fredbi enabled auto-merge January 11, 2026 18:51
@fredbi fredbi disabled auto-merge January 11, 2026 18:51
@fredbi fredbi merged commit 374235c into go-openapi:master Jan 11, 2026
23 checks passed
@fredbi fredbi deleted the feat/1803-kind branch January 11, 2026 18: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.

1 participant