Skip to content

Fixed: HTTP 415 error at operations endpoint when using OpenAPI extension#1971

Merged
bkoelman merged 1 commit intomasterfrom
fix-http-415
Apr 11, 2026
Merged

Fixed: HTTP 415 error at operations endpoint when using OpenAPI extension#1971
bkoelman merged 1 commit intomasterfrom
fix-http-415

Conversation

@bkoelman
Copy link
Copy Markdown
Member

@bkoelman bkoelman commented Apr 11, 2026

Before this PR, using Content-Type: application/vnd.api+json; ext="https://www.jsonapi.net/ext/openapi https://jsonapi.org/ext/atomic" would return HTTP 415 (Unsupported Media Type).
This happened because ASP.NET's own content negotiation middleware (which executes after ours) validates against the [Consumes] we inject, which didn't include the https://www.jsonapi.net/ext/openapi JSON:API extension.

QUALITY CHECKLIST

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.21%. Comparing base (e9b8f63) to head (023f710).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1971      +/-   ##
==========================================
+ Coverage   92.20%   92.21%   +0.01%     
==========================================
  Files         437      437              
  Lines       14924    14946      +22     
  Branches     2476     2476              
==========================================
+ Hits        13760    13782      +22     
  Misses        714      714              
  Partials      450      450              

☔ 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.

@bkoelman bkoelman marked this pull request as ready for review April 11, 2026 14:20
@bkoelman bkoelman changed the title Fixed: HTTP 415 error at operations endpoint when OpenAPI enabled Fixed: HTTP 415 error at operations endpoint when using OpenAPI extension Apr 11, 2026
@bkoelman bkoelman merged commit 052a5f4 into master Apr 11, 2026
15 checks passed
@bkoelman bkoelman deleted the fix-http-415 branch April 11, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant