Skip to content

fix: replace @JsonProperty with @JsonIgnore on request getter methods - #22

Closed
fern-api[bot] wants to merge 1 commit into
mainfrom
fern-bot/2026-04-13T21-23Z
Closed

fern-api[bot] wants to merge 1 commit into
mainfrom
fern-bot/2026-04-13T21-23Z

Conversation

@fern-api

@fern-api fern-api Bot commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Version Bump: Internal serialization annotation fix and retry interceptor refactor with no observable change to the public API surface or method signatures.

Request objects across multiple endpoints used @JsonProperty annotations
on getter methods, which caused Jackson to inadvertently serialize request
fields into the JSON body when these objects were used in contexts that
triggered serialization. Replacing with @JsonIgnore ensures these request
POJOs are not accidentally serialized as JSON bodies — parameters are
instead passed as query/path parameters via the HTTP layer.

Additionally, refactors RetryInterceptor to instantiate a fresh
ExponentialBackoff per retry cycle rather than reusing a shared instance,
preventing potential state leakage across concurrent or sequential requests.

Key changes:

  • Replace @JsonProperty with @JsonIgnore on all getter methods in GetAggregationCountRequest, GetAuthorsRequest, and GetBreakingNewsRequest
  • Refactor RetryInterceptor to create a new ExponentialBackoff instance per retryChain() invocation instead of holding a shared instance

🌿 Generated with Fern

Request objects across multiple endpoints used @JsonProperty annotations
on getter methods, which caused Jackson to inadvertently serialize request
fields into the JSON body when these objects were used in contexts that
triggered serialization. Replacing with @JsonIgnore ensures these request
POJOs are not accidentally serialized as JSON bodies — parameters are
instead passed as query/path parameters via the HTTP layer.

Additionally, refactors RetryInterceptor to instantiate a fresh
ExponentialBackoff per retry cycle rather than reusing a shared instance,
preventing potential state leakage across concurrent or sequential requests.

Key changes:
- Replace @JsonProperty with @JsonIgnore on all getter methods in GetAggregationCountRequest, GetAuthorsRequest, and GetBreakingNewsRequest
- Refactor RetryInterceptor to create a new ExponentialBackoff instance per retryChain() invocation instead of holding a shared instance

🌿 Generated with Fern
@oscatcher oscatcher closed this Apr 23, 2026
@oscatcher
oscatcher deleted the fern-bot/2026-04-13T21-23Z 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