Skip to content

[$75] Update Terms Error Response #350

Closed
@rootelement

Description

@rootelement

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions