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
is_url
is_email
The is_url and is_email in spidermon/contrib/validation/jsonschema/formats.py returns True is the input is anything but a string.
spidermon/contrib/validation/jsonschema/formats.py
True
Thus, dict(), 42, [42, {}, ('a', 'tuple')] would all be valid emails or URLs according to these logic.
dict()
42
[42, {}, ('a', 'tuple')]
Shouldn't these files read like this instead?
if not isinstance(instance, str_types): return False # …
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
is_url
andis_email
inspidermon/contrib/validation/jsonschema/formats.py
returnsTrue
is the input is anything but a string.Thus,
dict()
,42
,[42, {}, ('a', 'tuple')]
would all be valid emails or URLs according to these logic.Shouldn't these files read like this instead?
The text was updated successfully, but these errors were encountered: