fix(libdd-telemetry): serialize Method::Other as "*" per OpenAPI spec#1998
fix(libdd-telemetry): serialize Method::Other as "*" per OpenAPI spec#1998cataphract wants to merge 1 commit into
Conversation
📚 Documentation Check Results📦
|
Clippy Allow Annotation ReportComparing clippy allow annotations between branches:
Summary by Rule
Annotation Counts by File
Annotation Stats by Crate
About This ReportThis report tracks Clippy allow annotations for specific rules, showing how they've changed in this PR. Decreasing the number of these annotations generally improves code quality. |
Artifact Size Benchmark Reportaarch64-alpine-linux-musl
aarch64-unknown-linux-gnu
libdatadog-x64-windows
libdatadog-x86-windows
x86_64-alpine-linux-musl
x86_64-unknown-linux-gnu
|
🔒 Cargo Deny Results📦
|
🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: cbd925c | Docs | Datadog PR Page | Give us feedback! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1998 +/- ##
==========================================
- Coverage 72.69% 72.66% -0.04%
==========================================
Files 452 452
Lines 74886 74886
==========================================
- Hits 54438 54413 -25
- Misses 20448 20473 +25
🚀 New features to boost your workflow:
|
The serde rename_all = "UPPERCASE" attribute was causing Other to serialize as "OTHER" on the wire, but the OpenAPI spec defines "*" as the valid value for this variant.
f5807e0 to
cbd925c
Compare
Summary
The
Methodenum'sOthervariant was serializing as"OTHER"on the wire dueto the
#[serde(rename_all = "UPPERCASE")]attribute. However, theOpenAPI spec
defines
"*"as the value for this variant —"OTHER"does not appear in theschema at all. The existing code comment acknowledged this discrepancy but did not
fix it.
This PR adds
#[serde(rename = "*")]onOtherto override the enum-levelrename_allfor that one variant, making the wire value match the spec.Impact
Method::Othernow serializes/deserializes as"*"instead of"OTHER"DDOG_METHOD_OTHER = 9is unchanged — ABI-stable for FFI consumerscbindgenreads Rust identifiers, not serde attributes, so the generated header is unaffected🤖 Generated with Claude Code