We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 19a37fe + 0c73af0 commit 83fd825Copy full SHA for 83fd825
1 file changed
jsonschema/_format.py
@@ -183,11 +183,11 @@ def is_date(instance):
183
return True
184
return isodate.parse_datetime(instance)
185
else:
186
- @_checks_drafts("date-time")
187
- def is_date(instance):
188
- if not isinstance(instance, str_types):
189
- return True
190
- return strict_rfc3339.validate_rfc3339(instance)
+ @_checks_drafts("date-time")
+ def is_date(instance):
+ if not isinstance(instance, str_types):
+ return True
+ return strict_rfc3339.validate_rfc3339(instance)
191
192
193
@_checks_drafts("regex", raises=re.error)
0 commit comments