multicolour
multicolour copied to clipboard
Patching null to unset a model association throws an error
Versions
- Multicolour - 0.6.4
- 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