Repository navigation
fix: omit null settings presentation fields - #225
Merged
jpage-godaddy merged 2 commits intoAug 24, 2026
Merged
jpage-godaddy merged 2 commits into
jpage-godaddy merged 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
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.
wcole1-godaddy
approved these changes
Aug 24, 2026
jpage-godaddy
approved these changes
Aug 24, 2026
This was referenced Aug 24, 2026
This was referenced Sep 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.