You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pass UnionShape for union type discrimination (#3984)
UnionShape needs to be passed so that the customization code can detect
which Union type is being generated.
Co-authored-by: Fahad Zubair <fahadzub@amazon.com>
Copy file name to clipboardExpand all lines: codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/parse/CborParserGenerator.kt
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -78,8 +78,10 @@ abstract class CborParserCustomization : NamedCustomization<CborParserSection>()
78
78
* @param defaultContext The default discrimination context containing decoder symbol and discriminator method.
79
79
* @return UnionVariantDiscriminatorContext that defines how to discriminate union variants.
0 commit comments