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

C# - Generated code naming conventions not compliant

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.10.0
    • None
    • csharp, tools
    • None

    Description

      In our usage scenario, we generate Java and C# code bindings from an avro schema.

      The avdl uses naturally camelCasing for field names.

      C# language uses PascalCasing for any public field. Working with camel case properties in C# really doesn't look good =]

      I believe the change is simple, we can simply upper case the public fields first characters in the presence of some argument in avrogen's command line.

      Suggestion: --namingpolicy pascalcase

       

      I can create a PR for this if the idea is approved.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              eduardobr Eduardo Semprebon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: