Skip to content

feat!: rename NlpDataEntity field and fix GET request serialization - #26

Merged
oscatcher merged 1 commit into
mainfrom
fern-bot/2026-05-19T08-42-45Z
May 19, 2026
Merged

oscatcher merged 1 commit into
mainfrom
fern-bot/2026-05-19T08-42-45Z

Conversation

@fern-api

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

Copy link
Copy Markdown
Contributor

⚠️ 2.1.1 → 3.0.0

Breaking: Renaming NlpDataEntity.getSummaryTranslated() to getTranslationSummary() (and its builder counterpart) removes a public method, breaking all existing callers at compile time.

Breaking Changes

  • NlpDataEntity.getSummaryTranslated() — renamed to getTranslationSummary(); the underlying JSON field also changed from summary_translated to translation_summary. Update all call sites to use getTranslationSummary() and Builder.translationSummary(...).
  • To.Visitor — the visit(OffsetDateTime) and visit(String) method order in the Visitor interface is swapped; any anonymous or lambda implementations must reorder their overrides accordingly.

Fixed

  • GetAggregationCountRequest, GetAuthorsRequest, and GetBreakingNewsRequest — getter methods were annotated @JsonIgnore instead of @JsonProperty, causing all query parameters to be silently dropped from GET requests; they are now correctly annotated and transmitted.

See full changelog

This release contains a breaking rename in `NlpDataEntity` and a
behavioral fix to GET request serialization that restores correct
query-parameter transmission.

Key changes:
- `NlpDataEntity.getSummaryTranslated()` / `Builder.summaryTranslated()` renamed to `getTranslationSummary()` / `translationSummary()`, with the JSON property key changed from `summary_translated` to `translation_summary`
- `GetAggregationCountRequest`, `GetAuthorsRequest`, and `GetBreakingNewsRequest` getter annotations changed from `@JsonIgnore` to `@JsonProperty`, restoring correct serialization of all query parameters
- `To` union type: deserialization now attempts `String` conversion before `OffsetDateTime`, and the `Visitor` interface method order is swapped accordingly
- `PostSearchByLinkRequest`: removed Javadoc from `getFrom()`, `getTo()`, and their builder setters (documentation-only change)

🌿 Generated with Fern
@oscatcher
oscatcher self-requested a review May 19, 2026 08:53

@oscatcher oscatcher 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.

lgtm

@oscatcher
oscatcher merged commit 75f537a into main May 19, 2026
3 checks passed
@oscatcher
oscatcher deleted the fern-bot/2026-05-19T08-42-45Z branch May 19, 2026 08:53
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