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

Add tests for unions as httpPayloads #1908

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

kstich
Copy link
Contributor

@kstich kstich commented Aug 3, 2023

Resolves #1462

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

@kstich kstich requested a review from a team as a code owner August 3, 2023 23:17
@kstich kstich force-pushed the unionPayload_tests branch 2 times, most recently from 6404325 to 9a0d0a3 Compare August 30, 2023 20:22
@kstich kstich requested a review from mtdowling August 30, 2023 20:22
github-merge-queue bot pushed a commit to smithy-lang/smithy-rs that referenced this pull request Aug 31, 2023
This PR incorporates the new test cases in Smithy from
smithy-lang/smithy#1908, and adds support to
`@restXml` and `@restJson1` for unions with the `@httpPayload` trait.
This resolves #1896.

This also fixes code generation for the latest `medicalimaging` SDK
model.

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
@kstich kstich force-pushed the unionPayload_tests branch from 9a0d0a3 to f08e0aa Compare August 31, 2023 17:14
@kstich kstich force-pushed the unionPayload_tests branch from f08e0aa to ae8408f Compare August 31, 2023 17:35
@kstich kstich merged commit b5330d8 into smithy-lang:main Aug 31, 2023
@kstich kstich deleted the unionPayload_tests branch August 31, 2023 17:59
ysaito1001 pushed a commit to smithy-lang/smithy-rs that referenced this pull request Sep 15, 2023
This PR incorporates the new test cases in Smithy from
smithy-lang/smithy#1908, and adds support to
`@restXml` and `@restJson1` for unions with the `@httpPayload` trait.
This resolves #1896.

This also fixes code generation for the latest `medicalimaging` SDK
model.

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
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.

How are union shapes bound with httpPayload serialized in JSON-based protocols?
2 participants