We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After an upgrade from 0.20.0 to 0.22.0 I have some code that no longer works:
def isStringValid(value): if validators.length(value, min_val=1): return True return False
To get around the problem I need to modify the code:
def isStringValid(self, value): max_val = max(1, len(value)) if validators.length(value, min_val=1, max_val=max_val): return True return False
The text was updated successfully, but these errors were encountered:
between
length
Ok, thanks for the fix.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
After an upgrade from 0.20.0 to 0.22.0 I have some code that no longer works:
To get around the problem I need to modify the code:
The text was updated successfully, but these errors were encountered: