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

c# apache avro codegen - default value for enum types are not setting up properly

    XMLWordPrintableJSON

Details

    Description

      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.avscStatus.avscStatus.csStudent.cs

      Attachments

        1. Status.avsc
          0.2 kB
          sumanth paluru
        2. Status.cs
          0.6 kB
          sumanth paluru
        3. Student.avsc
          0.6 kB
          sumanth paluru
        4. Student.cs
          3 kB
          sumanth paluru

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              sumanth paluru sumanth paluru
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h