- 
                Notifications
    You must be signed in to change notification settings 
- Fork 300
Closed
Description
Currently I am receiving the following errors from the django backend:
{
  "errors": {
    "extra_comments": [
      "This field may not be null."
    ],
    "name": [
      "This field may not be null."
    ],
    "due_date": [
      "This field may not be null."
    ],
    "price": [
      "This field may not be null."
    ],
    "payment_type": [
      "This field may not be null."
    ],
    "description": [
      "This field may not be null."
    ]
  }
}
But JSONApi specifies something like:
{
  "errors": [
    {
      "status": "403",
      "source": { "pointer": "/data/attributes/secret-powers" },
      "detail": "Editing secret powers is not authorized on Sundays."
    },
    {
      "status": "422",
      "source": { "pointer": "/data/attributes/volume" },
      "detail": "Volume does not, in fact, go to 11."
    },
    {
      "status": "500",
      "source": { "pointer": "/data/attributes/reputation" },
      "title": "The backend responded with an error",
      "detail": "Reputation service not responding after three requests."
    }
  ]
}
Do I need to configure something, or is this support lacking in django-rest-framework-json-api
There is also a related question in stackoverflow.
Metadata
Metadata
Assignees
Labels
No labels