Dmitry Kovalev created AVRO-1556:
------------------------------------
Summary: csharp PrimitiveSchema looses custom properties in
WriteJson/ToString
Key: AVRO-1556
URL: https://issues.apache.org/jira/browse/AVRO-1556
Project: Avro
Issue Type: Bug
Components: csharp
Affects Versions: 1.7.7
Reporter: Dmitry Kovalev
Fix For: 1.7.8
PrimitiveSchema class overrides WriteJson method to handle a shotrcut where
primitive type is given as a literal, but in doing so it ignores teh case where
there are custom properties attached to it.
This breaks any functionality which relies on the equality of the schema
re-parsed from its ToString/WriteJson output, one example being csharp codegen.
Example:
{ "type": "string", "logicalType":"DateTimeInstant",
"logicalEncoding":"ISO8601-datetime-offset" }
becomes "type" : "string"
--
This message was sent by Atlassian JIRA
(v6.2#6252)