Skip to content

Type errors in DRF serializer mutation #515

Closed
@patrick91

Description

@patrick91

Right now we return a list of errors like this:

[{
  "field": "x",
  "errors": ["a"]
}]

it might be nicer to type them like this:

{
  "errors": {
    "x": ["a"]
  }
}

I'll send a PR in the next few weeks :)

See also: #514

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions