File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1+ v4.17.2
2+ =======
3+
4+ * Empty strings are not valid relative JSON Pointers (aren't valid under the
5+ RJP format).
6+ * Durations without (trailing) units are not valid durations (aren't
7+ valid under the duration format). This involves changing the dependency
8+ used for validating durations (from ``isoduration `` to ``isodate ``).
9+
110v4.17.1
211=======
312
Original file line number Diff line number Diff line change @@ -501,7 +501,9 @@ def is_uri_template(instance: object) -> bool:
501501 def is_duration (instance : object ) -> bool :
502502 if not isinstance (instance , str ):
503503 return True
504- return bool (isoduration .parse_duration (instance ))
504+ isoduration .parse_duration (instance )
505+ # FIXME: See bolsote/isoduration#25 and bolsote/isoduration#21
506+ return instance .endswith (tuple ("DMYWHMS" ))
505507
506508
507509@_checks_drafts (
You can’t perform that action at this time.
0 commit comments