smithy-lang / smithy-rs

Code generation for the AWS SDK for Rust, as well as server and generic smithy client generation.
Apache License 2.0
498 stars 187 forks source link

Handle Smithy 2.0 integer enum shapes #1700

Open DavidOgunsAWS opened 2 years ago

DavidOgunsAWS commented 2 years ago

IntEnum shapes have been added to Smithy 2.0. In order to support Smithy 2.0 models, changes are need in client and server side code generation.

Note: looks like i32 should be the representation https://awslabs.github.io/smithy/2.0/spec/simple-types.html#integer

jdisanti commented 1 year ago

Refactoring the EnumGenerator to work off of enum shapes instead of traits is being tracked in https://github.com/awslabs/smithy-rs/issues/1671