fix: Allow Smithy enum & intEnum to bind to event headers #2026
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of changes
Companion PR smithy-lang/smithy-swift#977 allows Smithy
enum
- andintEnum
-based models to be bound to event headers.This PR adds an event header-bound
enum
andintEnum
to existing local protocol tests for REST & RPC event streams, to ensure that the generated code compiles to Swift successfully.(Note that this is not a full protocol test of this change; protocol tests of event stream serde is not supported. The test does guarantee, though, that the Swift code generated from the Smithy model compiles successfully.)
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.