Skip to content

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Sep 4, 2025

Issue

smithy-lang/smithy-typescript#1600 (epic)

smithy-lang/smithy-typescript#1681 - schema refactor includes adding a namespace string to all unwrapped schema objects, such that the name field contains only the short name.

Description

Makes the SDK compatible with both pre and post merge of the above smithy-ts PR.

Testing

make test-protocols both with current code and changes from 1681

Checklist

  • [n/a] If the PR is a feature, add integration tests (*.integ.spec.ts).
  • [n/a] If you wrote E2E tests, are they resilient to concurrent I/O?
  • [n/a] 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 September 4, 2025 18:30
const hasBody = Object.values(members).find((m) => {
const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits();
return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && httpPrefixHeaders === void 0;
const noPrefixHeaders = httpPrefixHeaders === void 0;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

added this variable because the previous expression was potentially confusing as to the order of operations of && and ===.

@kuhe kuhe merged commit f32c1f1 into aws:main Sep 5, 2025
3 of 4 checks passed
@kuhe kuhe deleted the fix/schema branch September 5, 2025 14:53
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants