Andy Tyurin created THRIFT-3508:
-----------------------------------

             Summary: JS:TS Generator set all fields of the struct as required
                 Key: THRIFT-3508
                 URL: https://issues.apache.org/jira/browse/THRIFT-3508
             Project: Thrift
          Issue Type: Bug
          Components: JavaScript - Library
            Reporter: Andy Tyurin


Generator omits all optional fields of struct by default set them to required.

It's important don't make all fields of generated interface to be required.
For example I have a model that will be used in request as data and I want to 
send only required fields and in some cases additional optional fields in same 
request, but not all.

Typescript interface with required fields must be fully filled, if some one 
fields will be omit it will cause error. 

Thanks and please resolve that ASAP.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to