Skip to content

Handle JSON floats with arbitrary precision#599

Open
jeffcharles wants to merge 1 commit into
mainfrom
jc.adjust-msgpack-encoding
Open

Handle JSON floats with arbitrary precision#599
jeffcharles wants to merge 1 commit into
mainfrom
jc.adjust-msgpack-encoding

Conversation

@jeffcharles

Copy link
Copy Markdown
Contributor

This fixes some issues with the fuel consumption being reported as a different value compared to production.

arbitrary_precision results in serde_json preserving the original numeric token representation. As a result however, the default msgpack formatting encodes it as a string instead of an integer or float so a custom serializer is needed to avoid that change.

@jeffcharles jeffcharles changed the title Adjust which msgpack types are used to match production Handle JSON floats with arbitrary precision Jul 14, 2026
@jeffcharles jeffcharles requested a review from a team July 14, 2026 21:47

@saga-dasgupta saga-dasgupta left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes make sense.

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