Skip to content

Error message issue on Min rule #130

Description

@karolyjozsa

Bug Description:

>>> validate({"d":-2}, {"d":[rules.Integer(), rules.Min(1)]}, return_info=True)
(False, {}, {'d': {'Min': 'Expected Maximum: 1, Got: -2'}})

The validation correctly fails, also the error message correctly indicates that the "Min" rule where it failed, but the text incorrectly states "Maximum".

Expected Behavior:
'Expected Minimum: 1, Got: -2'
I guess the issue lies in using the Size rule and the error message with this "Maximum" comes from there.

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions