Skip to content

fix(client): added a guard to avoid the client to panic#474

Merged
fredbi merged 1 commit into
go-openapi:masterfrom
fredbi:fix/3192-panic
May 27, 2026
Merged

fix(client): added a guard to avoid the client to panic#474
fredbi merged 1 commit into
go-openapi:masterfrom
fredbi:fix/3192-panic

Conversation

@fredbi
Copy link
Copy Markdown
Member

@fredbi fredbi commented May 27, 2026

The client used to panic when hitting an unregistered producer.

This now returns an error as we expect clients to explicitly register their content producers.

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.

The client used to panic when hitting an unregistered producer.

This now returns an error as we expect clients to explicitly register
their content producers.

* contributes go-swagger/go-swagger#3192

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

codecov Bot commented May 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.36%. Comparing base (01f5c55) to head (9669745).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #474      +/-   ##
==========================================
+ Coverage   83.30%   83.36%   +0.05%     
==========================================
  Files          64       64              
  Lines        4516     4520       +4     
==========================================
+ Hits         3762     3768       +6     
+ Misses        583      582       -1     
+ Partials      171      170       -1     

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

@fredbi fredbi merged commit 10b4d12 into go-openapi:master May 27, 2026
32 checks passed
@fredbi fredbi deleted the fix/3192-panic branch May 27, 2026 17:41
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