Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
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 fields will be omit it will cause error.
Thanks and please resolve that ASAP.
Attachments
Issue Links
- is related to
-
THRIFT-3227 TypeScript: Export Interfaces + Classes for Structs
- Open
- links to