Skip to content

feat(server): support MessagePack in the REST API - #1436

Open
zhangzhenghao wants to merge 3 commits into
masterfrom
feat/rest-msgpack
Open

zhangzhenghao wants to merge 3 commits into
masterfrom
feat/rest-msgpack

Conversation

@zhangzhenghao

Copy link
Copy Markdown
Collaborator

Accept MessagePack request bodies and negotiate successful entity responses independently via Accept. JSON remains the default, and the binary representation follows the same field names and timestamp conventions. Error responses are unchanged.

Adds HTTP coverage for mixed formats, the JSON default, a user round trip, and truncated input. Verified locally with go test ./server -count=1 and git diff --cached --check.

@codecov

codecov Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 69.23077% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.16%. Comparing base (1917102) to head (0f65dc1).

Files with missing lines Patch % Lines
server/msgpack.go 66.66% 27 Missing ⚠️
server/rest.go 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1436      +/-   ##
==========================================
- Coverage   78.16%   78.16%   -0.01%     
==========================================
  Files          90       91       +1     
  Lines       16497    16584      +87     
==========================================
+ Hits        12895    12963      +68     
- Misses       3602     3621      +19     

☔ View full report in Codecov by Harness.
📢 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.

This branch has not been deployed

No deployments
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.

2 participants