Skip to content

fix(core): skip assigning undefined for absent response body fields#1871

Merged
smilkuri merged 2 commits intomainfrom
fix/httpbinding
Feb 16, 2026
Merged

fix(core): skip assigning undefined for absent response body fields#1871
smilkuri merged 2 commits intomainfrom
fix/httpbinding

Conversation

@smilkuri
Copy link
Contributor

@smilkuri smilkuri commented Feb 16, 2026

Issue #, if available:
P383491202

Description of changes:
After schema-serde was enabled in v3.930.0, fields absent from the HTTP response body are being set to undefined on the output object. The root cause is the copy loop in deserializeResponse was iterating through all schema-defined nonHttpBindingMembers and assigning undefined for the fields that were absent.

If one or more of the packages in the /packages directory has been modified, be sure yarn changeset add has been run and its output has
been committed and included in this pull request. See CONTRIBUTING.md.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@smilkuri smilkuri marked this pull request as ready for review February 16, 2026 16:51
@smilkuri smilkuri requested a review from a team as a code owner February 16, 2026 16:51
@smilkuri smilkuri merged commit 3c18df8 into main Feb 16, 2026
15 checks passed
@smilkuri smilkuri deleted the fix/httpbinding branch February 16, 2026 18:17
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.

2 participants