You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/08/30 12:05:00 UTC
[jira] [Commented] (AVRO-3274) Request for C# API to implement a JSON Encoder
[ https://issues.apache.org/jira/browse/AVRO-3274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17597811#comment-17597811 ]
ASF subversion and git services commented on AVRO-3274:
-------------------------------------------------------
Commit bc5d76e4785716814d258e7d38410782aede97a5 in avro's branch refs/heads/branch-1.11 from Robert Yokota
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=bc5d76e47 ]
AVRO-3001 AVRO-3274 AVRO-3568 AVRO-3613: Add JSON encoder/decoder for C# (#1833)
* AVRO-3001 AVRO-3274: Add JSON encoder/decoder for C#
* Add more comments for public/protected members
* Make CodeQL happy
* Make CodeQL happy again
* Minor optimization
* Fix cosmetic issues
* Fix JsonEncoder.StartItem accessibility
* Minor doc fix
* Add fixes and test for JSON encoding/decoding logical types
* Fix fullname calculation for logical schemas
* Fix for AVRO-3613
* Fix for AVRO-3568
* Add union with record test
* Fix test
* Incorporate review feedback
* Incorporate review feedback
* More cleanup
* Revert previous cleanup in favor of recommended cleanup
* Incorporate more review feedback
* Incorporate latest review feedback
* Add more unit tests
* Simplify string constant
* Simplify string constant
* Simplify string constant
* Simplify string constant
Co-authored-by: Martin Grigorov <ma...@users.noreply.github.com>
(cherry picked from commit 1841ff115d52727094998b80798d52210b8addb6)
> Request for C# API to implement a JSON Encoder
> ----------------------------------------------
>
> Key: AVRO-3274
> URL: https://issues.apache.org/jira/browse/AVRO-3274
> Project: Apache Avro
> Issue Type: Improvement
> Components: csharp
> Affects Versions: 1.10.2
> Reporter: Andrew Benedek
> Assignee: Robert Yokota
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.12.0
>
>
> This is a request or improvement.
> I have a .NET Core application that needs to publish AVRO JSON encoded messages to our Confluent Kafka REST API. I can see that the Java and C++ API's have a JSON encoder, but I couldn't tell from the documentation whether the C# API has it, or at least it doesn't seem to. The documentation for the C# API is a little light on for details. The Kafka REST API supports JSON, and AVRO JSON, but not binary AVRO from what I understand.
> The main problem facing the plain JSON we are currently publishing is that when using an AVRO schema and the union type, we hit the problem described here https://issues.apache.org/jira/browse/AVRO-2899. We need to generate the type information in the JSON in order to satisfy the validation in the Kafka REST API. Hence, the need for an AVRO JSON encoder.
> I can't re-write the .NET application, so I'm faced with the prospect of using either the Java or C++ API's with some sort of wrappers or interoperability framework, which I'm desperately trying to avoid.
> Any assistance or suggestions would be much appreciated.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)