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

chore: Move event marshal/unmarshal code to smithy-swift #1502

Merged
merged 3 commits into from
May 16, 2024

Conversation

jbelkins
Copy link
Contributor

@jbelkins jbelkins commented May 15, 2024

Description of changes

  • Move MessageMarshallableGenerator and MessageUnmarshallableGenerator from aws-sdk-swift to smithy-swift to support event streaming in non-AWS SDKs.
  • Move message marshal/unmarshal support in AWSHTTPBindingProtocolGenerator up to smithy-swift superclass HTTPBindingProtocolGenerator.
  • Moved event stream codegen tests from aws-sdk-swift to smithy-swift.

New/existing dependencies impact assessment, if applicable

No new dependencies were added to this change.

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

@@ -115,49 +108,4 @@ abstract class AWSHTTPBindingProtocolGenerator(
operationMiddleware.appendMiddleware(operation, OperationEndpointResolverMiddleware(ctx))
operationMiddleware.appendMiddleware(operation, UserAgentMiddleware(ctx.settings))
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The functions below are moved to parent class HTTPBindingProtocolGenerator in smithy-swift since they are non-AWS specific.

streamingShapes.forEach { streamingMember ->
messageUnmarshallableGenerator.render(streamingMember)
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The two generator files below plus the event stream codegen tests and the supporting Smithy test fixture are all moved to smithy-swift.

@jbelkins jbelkins merged commit 8b27a7f into main May 16, 2024
27 of 29 checks passed
@jbelkins jbelkins deleted the jbe/marshal_unmarshal_to_smithy_swift branch May 16, 2024 16:23
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.

None yet

2 participants