Open abhinav opened 8 years ago
Apache Thrift supports struct literals in thrift files.
For example,
struct Date { 1: byte day 2: byte month 3: i16 year } const Date foo = {'day': 1, 'month': 1, 'year': 1234}
The generated code includes,
ttypes.foo = new ttypes.Date({ 'day' : 1,'month' : 1,'year' : 1234});
Related uber/thriftrw-python#58
Apache Thrift supports struct literals in thrift files.
For example,
The generated code includes,