Skip to content

feat: add opt-in Builder.setSerializeNulls to send explicit nulls (DX-29683) - #272

Merged
reeshika-h merged 1 commit into
developmentfrom
fix/DX-29683-serialize-nulls
Oct 26, 2026
Merged

reeshika-h merged 1 commit into
developmentfrom
fix/DX-29683-serialize-nulls

Conversation

@reeshika-h

Copy link
Copy Markdown
Contributor

The SDK serializes request bodies with a default Gson converter, which drops null values, so "field": null never reached the CMA and a field such as a Number on a localized entry could not be cleared.

Add Contentstack.Builder.setSerializeNulls(boolean), off by default so existing behavior is unchanged. When enabled, explicit nulls are sent for every request made through the client.

Bump version to 1.15.0 and add a changelog entry.

…-29683)

The SDK serializes request bodies with a default Gson converter, which drops
null values, so "field": null never reached the CMA and a field such as a
Number on a localized entry could not be cleared.

Add Contentstack.Builder.setSerializeNulls(boolean), off by default so
existing behavior is unchanged. When enabled, explicit nulls are sent for
every request made through the client.

Bump version to 1.15.0 and add a changelog entry.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@snyk-io

snyk-io Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

@cs-raj
cs-raj marked this pull request as ready for review October 26, 2026 04:33
@cs-raj
cs-raj requested a review from a team as a code owner October 26, 2026 04:33
@reeshika-h
reeshika-h merged commit 8d00706 into development Oct 26, 2026
9 checks passed
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.

3 participants