Skip to content

Conversation

@kuhe
Copy link
Contributor

@kuhe kuhe commented Nov 13, 2025

Issue

#7500

Description

This makes the preconditions for setting a default REST JSON request body of {} more precise and consistent with older behavior.

This relates to operations with httpPayload bindings where a falsy non-byte-array value is being used to represent an empty byte array.

Testing

  • add unit tests
  • re-enabled some backlogged protocol tests for REST JSON to increase coverage

Checklist

  • If the PR is a feature, add integration tests (*.integ.spec.ts).
  • If you wrote E2E tests, are they resilient to concurrent I/O?
  • If adding new public functions, did you add the @public tag and enable doc generation on the package?

@kuhe kuhe requested a review from a team as a code owner November 13, 2025 16:34
async (args: InitializeHandlerArguments<any>): Promise<InitializeHandlerOutput<Output>> => {
const { input } = args;
if (input.accountId === undefined) {
if (!input.accountId) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

protocol tests say this should be inserted for both null and empty string, not only null.

@kuhe kuhe force-pushed the fix/rest-json branch 4 times, most recently from 8678c2c to 3ced966 Compare November 13, 2025 17:28
@kuhe kuhe merged commit 37e8b0d into main Nov 13, 2025
8 checks passed
@kuhe kuhe deleted the fix/rest-json branch November 13, 2025 18:53
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