Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3941

C# implementation of avrogen throws an exception if the schema file does not contain a namespace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.11.3
    • None
    • compatibility, csharp
    • None

    Description

      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?

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            tombr Tom Bruns
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: