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

feat!: Remove unknown case from allCases in int & string enums #742

Merged
merged 3 commits into from
May 29, 2024

Conversation

jbelkins
Copy link
Contributor

Issue #

awslabs/aws-sdk-swift#1463

Description of changes

Removes the .sdkUnknown() case from the allCases property on both Int- & String-backed enums, because the case is not meaningful in the context of iterating or discovering the enum's cases.

Scope

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

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

@@ -63,6 +63,7 @@ let package = Package(
.target(
name: "SmithyRetries",
dependencies: [
"SmithyRetriesAPI",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was an omission from the retries project that can lead to compile failures under certain conditions.

@jbelkins jbelkins merged commit 71a0045 into main May 29, 2024
17 checks passed
@jbelkins jbelkins deleted the jbe/no_unknown_in_all_cases branch May 29, 2024 22:07
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.

2 participants