msrest-for-python
msrest-for-python copied to clipboard
The message in ValidationError is not correct
Error Message:
# in msrest.exceptions
_messages = {
"min_length": "must have length greater than {!r}.",
"max_length": "must have length less than {!r}.",
...
}
code link: click
Validation Logic:
# in msrest.serialization
validation = {
"min_length": lambda x, y: len(x) < y,
"max_length": lambda x, y: len(x) > y,
...
}
code link: click
Expected Message: According to the validation logic, the correct message should be
_messages = {
"min_length": "must have length equal to or greater than {!r}.",
"max_length": "must have length equal to or less than {!r}.",
...
}
@lmazuel Could you please help to have a look~