Skip to content

Show param values in validation error messages #784

@sscherfke

Description

@sscherfke

Feature Request

This originates from fastapi/fastapi#473:

The error messages created by the parameter validation are like "msg": "value is not a valid integer".

It would be helpful for debugging if they contained the actual value of that parmeter: "msg": f"value '{param}' is not a valid integer" -> "msg": "value 'spam' is not a valid integer"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions