cosmicds / cds-api

API for accessing the CosmicDS database
GNU General Public License v3.0
0 stars 3 forks source link

Use non-strict null checks for type-checking request bodies #59

Closed Carifio24 closed 1 year ago

Carifio24 commented 1 year ago

This PR changes type checks for the request bodies for the student and educator signups to be non-strict. This means that undefined is an acceptable value for nullable fields (since null == undefined but null !== undefined). Ultimately, this means that requests don't need to include these fields in their bodies, rather than being forced to explicitly set values to null.