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

Javascript client: Please make required fields actually required.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.2
    • JavaScript - Compiler
    • None

    Description

      If fields are marked as required then I think that we should be forced to supply all of them, even if supplied with null values. Currently, I am able to construct an object without all of the required fields, send it to my backend, and nowhere does an error occur before sending. This should fail fast at the client. Instead, on the server I get null values. Null is so different than unspecified.
      Thanks!

      Attachments

        Activity

          People

            roger Roger Meier
            jordo Jordan
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: