Seems that idea of having different `classDiscrimi...
# serialization
s
Seems that idea of having different `classDiscriminator`s per one response is really popular. We'll take a look on how we can implement this.
👍 9
s
Not familiar with the backend, but maybe a
SerialClassDiscriminator
annotation on the discriminator property? Just a thought
m
There is no discriminator property 🤔 On the polymorphic base class would work
d
I like that idea, since it would also allow access to the property, post-deserialization.
Or perhaps an argument to
polymorphic<...>(classDiscriminator="type")
.
s
In my particular situation, I have one flat class hierarchy that uses a key
type
for its class discriminator, then a complex hierarchy that uses
op
for the top level and
t
for a specific subclass hierarchy (I didn't design this). Hopefully your implementation can accommodate such complexity
1
d
@serebit Do you have a workaround?
s
Sadly no, although I haven't really looked for one @Dominaezzz
d
Aw, I'm having a hard time writing a custom serializer.