Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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