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.
1 parent bd12369 commit 24d1328Copy full SHA for 24d1328
jsonschema/_format.py
@@ -454,6 +454,9 @@ def is_relative_json_pointer(instance: object) -> bool:
454
# https://tools.ietf.org/html/draft-handrews-relative-json-pointer-01#section-3
455
if not isinstance(instance, str):
456
return True
457
+ if not instance:
458
+ return False
459
+
460
non_negative_integer, rest = [], ""
461
for i, character in enumerate(instance):
462
if character.isdigit():
0 commit comments