Open unights opened 1 month ago
Maybe I should not use Tagged Union
in this case.
https://github.com/jcrist/msgspec/issues/338#issuecomment-1452442812
In my experience, the tag is an artifact of serialization/deserialization, and not something that needs to be accessed on the struct itself at runtime.
Question
I'm using msgspec to decode some JSON like
and now, I am using the following code to process this data.
I have tried
Tagged Union
but I need to define everyStruct
.Do you have any better suggestions for this situation?