You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/04/10 22:40:09 UTC
[GitHub] [pulsar] yciabaud opened a new pull request #4023: [python client]
Handle subrecords in JsonSchema encoding
yciabaud opened a new pull request #4023: [python client] Handle subrecords in JsonSchema encoding
URL: https://github.com/apache/pulsar/pull/4023
### Motivation
When using a complex type with subrecord in a JsonSchema, the JSON encoding fails with `Object of type SubType is not JSON serializable` because the actual encoding does not handle a default function that gets called for objects that can’t be serialized.
### Modifications
Adding a function using the same behavior (using object dictionary) on objects make the encoding compatible with subrecords.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services