Skip to content

chore: improve double serialization format - #21

Closed
fern-api[bot] wants to merge 1 commit into
mainfrom
fern-bot/2026-03-19T11-30Z
Closed

fern-api[bot] wants to merge 1 commit into
mainfrom
fern-bot/2026-03-19T11-30Z

Conversation

@fern-api

@fern-api fern-api Bot commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

Version Bump: Changed serialization behavior affects wire format of double values sent to server.

The SDK now serializes integer-valued doubles without decimal points (e.g., "24000" instead of "24000.0") for cleaner JSON output. This change affects the wire format but maintains full type compatibility.

Update JSON serialization to write integer-valued doubles without decimal 
points for cleaner API responses. This change affects the wire format of 
numeric values but maintains type compatibility.

Key changes:
- Add custom DoubleSerializer for integer-valued doubles
- Register serializer with Jackson ObjectMapper
- Integer doubles now serialize as "24000" instead of "24000.0"

🌿 Generated with Fern
@oscatcher oscatcher closed this Apr 23, 2026
@oscatcher
oscatcher deleted the fern-bot/2026-03-19T11-30Z branch May 1, 2026 16:07
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