Jonathan created AVRO-2411: ------------------------------ Summary: RecordSchema with logicalType field is not JSON serializable Key: AVRO-2411 URL: https://issues.apache.org/jira/browse/AVRO-2411 Project: Apache Avro Issue Type: Bug Components: python Affects Versions: 1.9.0 Reporter: Jonathan
After updating to 1.9.0, RecordSchemas that contain a field with a logicalType mapping can no longer be passed into json.dumps() as it throws the following error: {code}Object of type mappingproxy is not JSON serializable{code} Example schema: {code} { "namespace": "Sherlock", "type": "record", "name": "Action", "fields": [ { "name": "action_id", "type": "string", "doc": "Key for the Action" }, { "name": "actionType_id", "type": "int", "doc": "Action Type key" }, { "name": "timestamp", "type": { "type": "long", "logicalType": "timestamp-millis" }, "doc": "Event time of validation request or modified_dt of save (UTC)" } ] } {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)