Skip to content

Commit 5f944df

Browse files
docs: add collapse-optional-nullable flag to Java SDK configuration (#1882)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: [email protected] <[email protected]>
1 parent ff2979c commit 5f944df

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

fern/products/sdks/overview/java/configuration.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ Specifies the name of the base exception class that all generated exceptions wil
2727
The provided string will be used as the client class name.
2828
</ParamField>
2929
30+
<ParamField path="collapse-optional-nullable" type="boolean" default="false" required={false} toc={true}>
31+
When enabled, generates `OptionalNullable<T>` types for merge patch request fields to distinguish between three states: absent (field not provided), null (field explicitly set to null), and present (field has a non-null value). This enables proper handling of JSON Merge Patch semantics where omitting a field, setting it to null, and providing a value have different meanings.
32+
</ParamField>
33+
3034
<ParamField path="custom-dependencies" type="List<string>" required={false} toc={true}>
3135

3236
<Markdown src="/snippets/pro-plan.mdx"/>
@@ -140,4 +144,4 @@ Provides a description of the SDK package that will appear in package metadata a
140144
</ParamField>
141145
<ParamField path="reference-url" type="string" required={false} toc={true}>
142146
Sets the reference URL (typically the API documentation or project website) that will be included in the package metadata for users to find additional information.
143-
</ParamField>
147+
</ParamField>

0 commit comments

Comments
 (0)