Skip to content

Add a distinctive "code" to all ValidationErrors #252

@brunobord

Description

@brunobord

As the Django documentation suggests, Django ValidationErrors exceptions should

Provide a descriptive error code to the constructor

This was a "django-only" feature, and was not compatible with DRF errors embedded in the version <=3.3.

When the #239 will be closed, we'll have to make a pass on every ValidationError raised in our code, and provide the appropriate code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions