Skip to content

FIX Preserve required parameters after a wire round trip - #3974

Open
Aman (its-amann) wants to merge 1 commit into
microsoft:mainfrom
its-amann:fix/required-parameter-wire-3854
Open

Aman (its-amann) wants to merge 1 commit into
microsoft:mainfrom
its-amann:fix/required-parameter-wire-3854

Conversation

@its-amann

Copy link
Copy Markdown
Contributor

Description

Fixes #3854. The catalog serializes both a required default and an optional default of None as JSON null. It uses the required flag to distinguish them.

When reading the catalog, restore REQUIRED_VALUE for a null or omitted default if required is true. Optional parameters still come back with None.

Roman Lutz (@romanlutz) would appreciate a review when you get a chance.

Tests and Documentation

Added a JSON round-trip test for required and optional integer parameters. The test also checks that the restored parameter still coerces string input to an integer. The parameter, registry resolution, and scenario parameter suites passed (428 tests).

Copilot AI balanced review requested due to automatic review settings November 5, 2026 09:25

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

This branch has not been deployed

No deployments
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.

Parameter required status is lost after wire round-trip

2 participants