Skip to content

[Validator] Missing metadata in ConstraintViolation result #9691

Closed
@snebjorn

Description

@snebjorn

I'm missing a getAssertType() function in the ConstraintViolation class which would indicate which constraint triggered the violation.

This is useful when you make your own error response format, as currently it's impossible to tell which of the constraints on a member was triggered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions