Skip to content

docs: add MEDIA_TYPES.md selection-rules guide#432

Merged
fredbi merged 1 commit intogo-openapi:masterfrom
fredbi:doc/document-media-types
May 7, 2026
Merged

docs: add MEDIA_TYPES.md selection-rules guide#432
fredbi merged 1 commit intogo-openapi:masterfrom
fredbi:doc/document-media-types

Conversation

@fredbi
Copy link
Copy Markdown
Member

@fredbi fredbi commented May 7, 2026

Documents how the runtime parses, matches, and negotiates HTTP media types on both the client and server sides. Covers the v0.30 parameter-honouring change, the WithIgnoreParameters opt-out, the 400/415/406/500 error mapping, and the codec-dispatch nuance whereby route.Producers is keyed by bare type while the response Content-Type preserves negotiated parameters.

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.

Documents how the runtime parses, matches, and negotiates HTTP media
types on both the client and server sides. Covers the v0.30
parameter-honouring change, the WithIgnoreParameters opt-out, the
400/415/406/500 error mapping, and the codec-dispatch nuance whereby
route.Producers is keyed by bare type while the response Content-Type
preserves negotiated parameters.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.23%. Comparing base (47f4342) to head (271a07a).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #432   +/-   ##
=======================================
  Coverage   84.23%   84.23%           
=======================================
  Files          57       57           
  Lines        3685     3685           
=======================================
  Hits         3104     3104           
  Misses        442      442           
  Partials      139      139           

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

@fredbi fredbi merged commit 0196885 into go-openapi:master May 7, 2026
18 checks passed
@fredbi fredbi deleted the doc/document-media-types branch May 7, 2026 22:59
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