Skip to content

Conversation

@kuhe
Copy link
Contributor

@kuhe kuhe commented Jun 17, 2025

allow protocol implementations to use a set of string aliases when identifying errors

Codegen diff is in the unified error deserializer which relies on a string discriminator or identifier to route the error deserialization to the correct error class:

case "InvalidParameterCombinationException": // existing case
case "com.amazonaws.service#InvalidParameterCombinationException": // existing case
case "InvalidParameterCombination": // new: alias provided by AwsQueryCompat
  throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);

@kuhe kuhe requested a review from a team as a code owner June 17, 2025 16:11
@kuhe kuhe merged commit 90d03e4 into smithy-lang:main Jun 17, 2025
11 checks passed
@kuhe kuhe deleted the feat/error-alias branch June 17, 2025 16:29
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