We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaf5deb commit 1d1cf7fCopy full SHA for 1d1cf7f
.changelog/unknown-debug.md
@@ -0,0 +1,18 @@
1
+---
2
+applies_to: ["client"]
3
+authors: ["landonxjames"]
4
+references: ["smithy-rs#4137"]
5
+breaking: false
6
+new_feature: false
7
+bug_fix: true
8
9
+
10
+Fix bug with enum codegen
11
12
+When the first enum generated has the `@sensitive` trait the opaque type
13
+underlying the `UnknownVariant` inherits that sensitivity. This means that
14
+it does not derive `Debug`. Since the module is only generated once this
15
+causes a problem for non-sensitive enums that rely on the type deriving
16
+`Debug` so that they can also derive `Debug`. We manually add `Debug` to
17
+the module so it will always be there since the `UnknownVariant` is not
18
+modeled and cannot be `@sensitive`.
0 commit comments