multicolour icon indicating copy to clipboard operation
multicolour copied to clipboard

Patching null to unset a model association throws an error

Open tombpain opened this issue 5 years ago • 0 comments

Versions

  1. Multicolour - 0.6.4
  2. Node - 11.0.0

Expected behavior

Patching null to a model association should remove the existing association.

Actual behavior

Joi doesn't allow null as a value passed via PATCH so the API returns an error.

Steps to reproduce behavior

PATCH null to a model association

tombpain avatar Jun 06 '19 13:06 tombpain