Skip to content

Feature suggestion - serializable errors #473

@samfrances

Description

@samfrances

One thing that other validation libraries (e.g. Marshmallow, Cerberus, Django Rest Framework's serializers etc.) often provide, is errors in a format that is itself easily serializable (e.g. a dict). For example:

{
    'email': ['"invalid" is not a valid email address.'],
    'name': ['Missing data for required field.']
}

It would be nice if jsonschema would provide errors in a form that can be immediately serialized and sent as part of a 400 response, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions