Skip to content

Conversation

dmontagu
Copy link
Contributor

@dmontagu dmontagu commented Jul 24, 2023

Addresses a bug noticed in #6819 (comment) where InstanceOf[T] was serializing like T from JSON, but like SerializeAsAny[T] from python.

With this PR, it always serializes like T, but you can still get the SerializeAsAny behavior by annotating with that, and either nesting works (SerializeAsAny[InstanceOf[T]] or InstanceOf[SerializeAsAny[T]]).

Selected Reviewer: @Kludex

@dmontagu
Copy link
Contributor Author

please review

@Kludex Kludex merged commit 2585494 into main Jul 24, 2023
@Kludex Kludex deleted the fix-instanceof-serialization branch July 24, 2023 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants