Skip to content

Conversation

@maxatome
Copy link
Contributor

Fixes #372

If a specification contains a default producer Content-Type and at least one route with a specific (and different) producer Content-Type, the Content-Type of 405 and 404 responses was this specific Content-Type.

Now the default producer Content-Type is always used.

Fixes go-openapi#372

If a specification contains a default producer Content-Type and at
least one route with a specific (and different) producer Content-Type,
the Content-Type of 405 and 404 responses was this specific
Content-Type.

Now the default producer Content-Type is always used.

Signed-off-by: Maxime Soulé <btik-git@scoubidou.com>
@codecov
Copy link

codecov bot commented Nov 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.29%. Comparing base (078717a) to head (b1c323f).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #373   +/-   ##
=======================================
  Coverage   78.28%   78.29%           
=======================================
  Files          50       50           
  Lines        3371     3372    +1     
=======================================
+ Hits         2639     2640    +1     
  Misses        623      623           
  Partials      109      109           
Flag Coverage Δ
oldstable-macos-latest 78.29% <100.00%> (+<0.01%) ⬆️
oldstable-ubuntu-latest 78.29% <100.00%> (+<0.01%) ⬆️
oldstable-windows-latest 78.29% <100.00%> (+<0.01%) ⬆️
stable-macos-latest 78.29% <100.00%> (+<0.01%) ⬆️
stable-ubuntu-latest 78.29% <100.00%> (+<0.01%) ⬆️
stable-windows-latest 78.29% <100.00%> (+<0.01%) ⬆️

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.

@fredbi fredbi merged commit 23bd44f into go-openapi:master Nov 11, 2025
13 checks passed
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.

Bad 404 & 405 content-type

2 participants