[ 
https://issues.apache.org/jira/browse/AVRO-2997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17556727#comment-17556727
 ] 

Kalle Niemitalo commented on AVRO-2997:
---------------------------------------

This seems to have been fixed in commit 
a86dde293841a5f7856c11c799ca6561e6745419 merging 
[https://github.com/apache/avro/pull/1070] for AVRO-2633. The "doc" property is 
written by SchemaName.WriteJson. Having the documentation as part of SchemaName 
seems weird to me but anyway it works.

> Documentation is missing in string representation of named schemas
> ------------------------------------------------------------------
>
>                 Key: AVRO-2997
>                 URL: https://issues.apache.org/jira/browse/AVRO-2997
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: csharp
>    Affects Versions: 1.10.0
>            Reporter: Lucas Heimberg
>            Priority: Major
>         Attachments: AVRO-2997.patch
>
>
> The named schema types record and enum have a documentation field. In 
> contrast to the Java implementation, the C# implementation of Avro is missing 
> this field in their canonical string representation returned by ToString().
> To fix this, it seems that it is enough to add writing the documentation 
> string to the WriteJsonFields method of RecordSchema and EnumSchema.
> This is more than a cosmetical problem as, for example, the Confluent schema 
> registry decides equivalence of schemas based on the canonical string 
> representation. The missing doc field in the C# implementation makes it hard 
> to emulate this concept of schema equivalence in an application using the C# 
> implementation of Avro.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to