summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2018-05-14 08:50:01 -0400
committerJulian Berman <Julian@GrayVines.com>2018-05-14 08:50:01 -0400
commit5411305d82c7505c89b0d835b5c1aed59cb255c3 (patch)
treede9818f25bf53f7ab8627a308d92d66afcd7a8e1
parenta6b9fd1c6a5ed764853f9c2ef57c06dea3c9d542 (diff)
downloadjsonschema-draft6.tar.gz
Pass the non-string JSON pointer test, skip non strings.draft6
-rw-r--r--jsonschema/_format.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/jsonschema/_format.py b/jsonschema/_format.py
index a2177f0..28a12f0 100644
--- a/jsonschema/_format.py
+++ b/jsonschema/_format.py
@@ -283,6 +283,8 @@ else:
draft6="json-pointer", raises=jsonpointer.JsonPointerException,
)
def is_json_pointer(instance):
+ if not isinstance(instance, str_types):
+ return True
return jsonpointer.JsonPointer(instance)