Skip to content

Violation message for constraints #1

@exavolt

Description

@exavolt

Currently every constraint must implement the ConstraintDescription method which should provide the description about the constraint itself.

Should we need to add ViolationMessage() string into the interface? The ViolationMessage will provide message which can be used to describe the violation.

For example, if the constraint is min length 5, when a value violated that constraint, the message would be too short.

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