-
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
incorrect serialization of complex union type? #742
Comments
You are experience the same issue as #584. It is impossible to In this case because you are using |
I don't think the problem has anything to do with
You're naively calling |
I put a sketch of a potential solution in #752 |
Please read the outcome of the issue linked in this one and thanks fot the PR. Unfortunately, the solution is not as simple as it seems to be. You need to make it work for |
Closed by #751 With the latest version the output is the proper one: b'{"inner": {"Typing": {"turn_id": 627, "conversation_id": "6f11762f-dc36-47b9-8895-ea7c1413f21b", "authored_by": "TaGxTdTDnDrRYZuNDXnJ", "timestamp": 544747194977}}}' |
Describe the bug
The output of the following code serializes to the incorrect union type.
The results are the same without 'avro-json':
If I change the
Typing
class to:Everything works as expected and it outputs the
Typing
inner. So, it seems like it has something to do with the properties being too close to each other?The text was updated successfully, but these errors were encountered: