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
Sometimes the tag and the content of the JSON you're processing are on the same level where both TaggedObject and UntaggedValue will not suffice. I propose adding another SumEncoding option that handles this case. The implementation should be very similar to that of UntaggedValue.
The text was updated successfully, but these errors were encountered:
poscat0x04
changed the title
Add a SumEncoding options that's somewhere between a TaggedObject and an UntaggedValue
Add a SumEncoding option that's somewhere between a TaggedObject and an UntaggedValue
Jan 17, 2021
Hmmm, this is tricky to implement for constructors that do not have field names. We cannot drop them cause then we will lose the roundtrip property. Maybe we should use the position as the key when encoding and decoding. For example, A 1 1 should be encoded to
Sometimes the tag and the content of the JSON you're processing are on the same level where both
TaggedObject
andUntaggedValue
will not suffice. I propose adding anotherSumEncoding
option that handles this case. The implementation should be very similar to that ofUntaggedValue
.The text was updated successfully, but these errors were encountered: