You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "José Massada (Jira)" <ji...@apache.org> on 2022/03/11 14:13:00 UTC
[jira] [Commented] (AVRO-3003) c# apache avro codegen - default value for enum types are not setting up properly
[ https://issues.apache.org/jira/browse/AVRO-3003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17504938#comment-17504938 ]
José Massada commented on AVRO-3003:
------------------------------------
Hello all,
I've stumbled upon this issue and opened a new PR [https://github.com/apache/avro/pull/1596]
Can someone please have a look?
Thanks
> c# apache avro codegen - default value for enum types are not setting up properly
> ---------------------------------------------------------------------------------
>
> Key: AVRO-3003
> URL: https://issues.apache.org/jira/browse/AVRO-3003
> Project: Apache Avro
> Issue Type: Bug
> Components: csharp
> Affects Versions: 1.10.1
> Reporter: sumanth paluru
> Priority: Major
> Attachments: Status.avsc, Status.cs, Student.avsc, Student.cs
>
>
> default value for enum types are not setting up properly, the namespaces are not resolved on setting the value.
> example :
> private com.test.school.app.enums.Status _status = Status.Unknown
> we are getting build issue because the namespace is not resolved ofe the Unknown value which is set.
> I have attached the sample avro files and c# model generated.[^Student.avsc][^Status.avsc][^Status.cs][^Student.cs]
--
This message was sent by Atlassian Jira
(v8.20.1#820001)