Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3508

JS:TS Generator set all fields of the struct as required

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              emmenlau Mario Emmenlauer
              andy.tyurin@gmail.com Andy Tyurin
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m