Skip to main content

Never use required

As the project involving, any fields may become optional. But if it is defined as required, it can not be removed. So required should not be used.

Never change the ordinal

To be back compatible, the ordinal of the field SHOULD NOT be changed.

Naming

file name

The names of messages are all lowercase, with underscores between words. Files should end in .thrift.

struct name

Struct names start with a capital letter T and have a capital letter for each new word, with no underscores: TMyStruct

field name

The names of struct members are all lowercase, with underscores between words.