Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update NullAndEmptyHeadersServer tests for restJson1 and restXml #2433

Merged

Conversation

landonxjames
Copy link
Contributor

@landonxjames landonxjames commented Oct 24, 2024

Background

  • What do these changes do?
  • Why are they important?

NullAndEmptyHeaderClient tests were recently updated to expect empty headers to be serialized. Similar changes were not made for the server variants of those tests. This leads to an unexpected difference in serialization between servers and clients and prevents clients from receiving semantically meaningful headers from the server.

The test now align with the similar tests for clients. They expect empty headers to be serialized as "" and null headers to not be serialized

Testing

Links

  • Links to additional context, if necessary
  • Issue #, if applicable (see here for a list of keywords to use for linking issues)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

The test now align with the similar tests for clients. They expect empty
headers to be serialized as "" and null headers to not be serialized
@Madrigal
Copy link
Contributor

Can confirm that this also impacts Go SDK

@milesziemer milesziemer merged commit c7a8192 into smithy-lang:main Oct 31, 2024
13 checks passed
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.

3 participants