Test
Merged
SW
4mo ago+78+78+01234567890123456789-2-2-0123456789
Summary by cubic
Adds an optional account_id override to DELETE /api/artists/{id} so authorized org members or admins can delete an artist under another account’s context. The override is validated as a UUID and passed into validateAuthContext; invalid input returns 400.
- New Features
- Parse JSON body with
safeParseJsonand validate withzod(account_idoptional UUID); return 400 on malformed JSON or invalid UUID. - Pass
{ accountId }tovalidateAuthContextand enforce access withcheckAccountArtistAccess. - Tests updated to cover override flow, invalid
account_id, and default behavior ({ accountId: undefined }).
- Parse JSON body with