How to complete the challenge POST /todos (422) title too long

Issue a POST request to /todos with a title longer than the maximum allowed length.

{
  "title": "this title has far too many characters to validate.",
  "doneStatus": true,
  "description": "should trigger a 422 error"
}

The response should be 422 Unprocessable Content.

{
  "errorMessages": [
    "Failed Validation: Maximum allowable length exceeded for title - maximum allowed is 50"
  ]
}

Try it now

POST /todos with a long title to trigger 422
Experiment with this endpoint