Closed
Description
When a user is registered to a challenge, and that user hasn't signed requisite terms, the error returns the name of the terms, but no data associated with it.
Augment the error object to have a freeform metadata object (we will add this to the v5 standard), for example:
{
"message": "Message here",
"metadata": {
"missingTerms": [ {"termId": uuid, "roleId": uuid}]
}
}
DO NOT edit the error message object, only add the metadata object (i mean, don't remove properties, or rename properties based on my example).
Update the response object in swagger as well with the appropriate formatting.