Skip to content

provide a way to configure Validation Exceptions to be contextual #175

@PKgotso

Description

@PKgotso

I am looking for a way to add context to RequestValidationError. Instead of it returning the error from being unable to cast to a type, I want to be able to give it the message and append the value.

Eg
Failed to cast hello to type integer

Allowing
The number hello is not a valid number

I think this will make it extremely reusable. If this is available already, I couldn't find it in the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions