Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5032

Allows PascalCase properties for netstd

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.14.0
    • netstd - Compiler
    • None

    Description

      Microsoft guidelines  state that public properties should be PascalCase. Currently if a property in the thrift description is MyProperty it will be expanded into My_property which is clearly wrong. As this is a breaking change I added a pascal option to the netstd generator. I believe that in the future this should be the default and the old style deprecated.

      I also added the option to the generator of the Server test, so that we can have a test with the properties in PascalCase talking with a netstd client without PascalCase. I hope this is ok.

       

      https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/capitalization-conventions

      Attachments

        Issue Links

          Activity

            People

              ptsneves Paulo Neves
              ptsneves Paulo Neves
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 20m
                  20m