Skip to content

fix: omit null settings presentation fields - #225

Merged
jpage-godaddy merged 2 commits into
godaddy:mainfrom
sgopalan-godaddy:fix/settings-presentation-null-serialization
Aug 24, 2026
Merged

jpage-godaddy merged 2 commits into
godaddy:mainfrom
sgopalan-godaddy:fix/settings-presentation-null-serialization

Conversation

@sgopalan-godaddy

Copy link
Copy Markdown
Collaborator

Problem

The release command serializes omitted optional settings-form-v1 properties as explicit JSON null values. App Registry rejects the createRelease payload with validation errors such as visibleWhen expecting an object and nested fields reporting invalid input.

Fix

Omit absent optional presentation properties during serialization, including section, field, list-group, and choice-option values. Regression assertions verify these properties are absent from the release payload instead of null.

Copilot AI lite review requested due to automatic review settings August 24, 2026 17:56

Copilot AI 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.

Pull request overview

This PR fixes release payload serialization for settings-form-v1 presentation objects so that absent optional presentation fields are omitted (not serialized as explicit JSON null), preventing App Registry validation failures during createRelease.

Changes:

  • Add serde(skip_serializing_if = "Option::is_none") to optional presentation fields across sections, fields, list-group items, and choice options.
  • Add a regression assertion in the release command tests to ensure absent presentation properties are omitted from the serialized payload.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
rust/src/config/settings_form.rs Updates serde serialization for optional presentation fields to omit None values rather than emitting null.
rust/src/application/commands/release.rs Extends release payload regression assertions around presentation serialization output.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@jpage-godaddy
jpage-godaddy merged commit ef745d9 into godaddy:main Aug 24, 2026
4 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.

4 participants