Tom Bruns created AVRO-3941:
-------------------------------

             Summary: C# implementation of avrogen throws an exception if the 
schema file does not contain a namespace 
                 Key: AVRO-3941
                 URL: https://issues.apache.org/jira/browse/AVRO-3941
             Project: Apache Avro
          Issue Type: Bug
          Components: compatibility
    Affects Versions: 1.11.3
            Reporter: Tom Bruns


The AVRO spec does not require a namespace and the java implementation of 
avrogen successfully generates a java POJO class when the schema file does not 
have one.

The issue is in CodeGen.cs around line 896 and is because of the use of 
CodeNamespace that requires one.

Would it be acceptable to submit a PR that optionally adds a "default" 
namespace (ex: SchemaHadNoNamespace)  if the schema file does not have one?

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to