thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulo Neves (Jira)" <>
Subject [jira] [Commented] (THRIFT-5032) Allows PascalCase properties for netstd
Date Wed, 27 Nov 2019 19:45:00 GMT


Paulo Neves commented on THRIFT-5032:

Ok so the patch is as you request, PascalCase is an option and I think it is ready for merge.

> Allows PascalCase properties for netstd
> ---------------------------------------
>                 Key: THRIFT-5032
>                 URL:
>             Project: Thrift
>          Issue Type: Improvement
>          Components: netstd - Compiler
>            Reporter: Paulo Neves
>            Assignee: Paulo Neves
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
> 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.

This message was sent by Atlassian Jira

View raw message