From 0743e9fcbb0d47952678c4eea09077c3334ebb5c Mon Sep 17 00:00:00 2001 From: tstanmay13 <29681256+tstanmay13@users.noreply.github.com> Date: Fri, 31 Oct 2025 16:12:36 +0000 Subject: [PATCH] update changelogs --- .../overview/java/changelog/2025-10-31.mdx | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 fern/products/sdks/overview/java/changelog/2025-10-31.mdx diff --git a/fern/products/sdks/overview/java/changelog/2025-10-31.mdx b/fern/products/sdks/overview/java/changelog/2025-10-31.mdx new file mode 100644 index 000000000..c6ce50e79 --- /dev/null +++ b/fern/products/sdks/overview/java/changelog/2025-10-31.mdx @@ -0,0 +1,21 @@ +## 3.11.0 +**`(feat):`** Add support for three-state nullable fields in PATCH requests via `collapse-optional-nullable` config. +When enabled, optional nullable fields use `OptionalNullable` to distinguish between omitted fields, +explicit null values, and actual values. This enables proper PATCH request semantics for APIs that need +to differentiate between "not specified" and "set to null". + +```yaml +customConfig: + collapse-optional-nullable: true +``` + +Generated usage: +```java +UpdateRequest.builder() + .fieldName(OptionalNullable.absent()) // Omit field + .anotherField(OptionalNullable.ofNull()) // Clear field + .valueField(OptionalNullable.of("value")) // Set value + .build(); +``` + +