You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (Jira)" <ji...@apache.org> on 2021/09/11 12:31:02 UTC
[jira] [Closed] (THRIFT-3508) JS:TS Generator set all fields of the
struct as required
[ https://issues.apache.org/jira/browse/THRIFT-3508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer closed THRIFT-3508.
------------------------------
> 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
> Assignee: Mario Emmenlauer
> Priority: Major
> Labels: typescript
> Fix For: 0.15.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)