Understanding Schema Unions and Tagging in Structs
I think I'm a bit confused about Schema unions. I have a non-descriminated union of two schemas. I then want to be able to check which of my schemas was matched. I'm using
_tag: S.tag("SendEmailResponseSuccess")
_tag: S.tag("SendEmailResponseSuccess")
in my Struct, but it seems like it's actually expecting the data to have a