jsonpointer 3.1.0__tar.gz → 3.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {jsonpointer-3.1.0/jsonpointer.egg-info → jsonpointer-3.1.1}/PKG-INFO +2 -1
- {jsonpointer-3.1.0 → jsonpointer-3.1.1/jsonpointer.egg-info}/PKG-INFO +2 -1
- {jsonpointer-3.1.0 → jsonpointer-3.1.1}/jsonpointer.py +2 -2
- {jsonpointer-3.1.0 → jsonpointer-3.1.1}/setup.py +1 -0
- {jsonpointer-3.1.0 → jsonpointer-3.1.1}/tests.py +4 -0
- {jsonpointer-3.1.0 → jsonpointer-3.1.1}/AUTHORS +0 -0
- {jsonpointer-3.1.0 → jsonpointer-3.1.1}/LICENSE.txt +0 -0
- {jsonpointer-3.1.0 → jsonpointer-3.1.1}/MANIFEST.in +0 -0
- {jsonpointer-3.1.0 → jsonpointer-3.1.1}/README.md +0 -0
- {jsonpointer-3.1.0 → jsonpointer-3.1.1}/bin/jsonpointer +0 -0
- {jsonpointer-3.1.0 → jsonpointer-3.1.1}/jsonpointer.egg-info/SOURCES.txt +0 -0
- {jsonpointer-3.1.0 → jsonpointer-3.1.1}/jsonpointer.egg-info/dependency_links.txt +0 -0
- {jsonpointer-3.1.0 → jsonpointer-3.1.1}/jsonpointer.egg-info/top_level.txt +0 -0
- {jsonpointer-3.1.0 → jsonpointer-3.1.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jsonpointer
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.1
|
|
4
4
|
Summary: Identify specific nodes in a JSON document (RFC 6901)
|
|
5
5
|
Home-page: https://github.com/stefankoegl/python-json-pointer
|
|
6
6
|
Author: Stefan Kögl
|
|
@@ -17,6 +17,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
21
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
21
22
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
22
23
|
Classifier: Topic :: Software Development :: Libraries
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jsonpointer
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.1
|
|
4
4
|
Summary: Identify specific nodes in a JSON document (RFC 6901)
|
|
5
5
|
Home-page: https://github.com/stefankoegl/python-json-pointer
|
|
6
6
|
Author: Stefan Kögl
|
|
@@ -17,6 +17,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
21
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
21
22
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
22
23
|
Classifier: Topic :: Software Development :: Libraries
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
# Will be parsed by setup.py to determine package metadata
|
|
34
34
|
__author__ = 'Stefan Kögl <stefan@skoegl.net>'
|
|
35
|
-
__version__ = '3.1.
|
|
35
|
+
__version__ = '3.1.1'
|
|
36
36
|
__website__ = 'https://github.com/stefankoegl/python-json-pointer'
|
|
37
37
|
__license__ = 'Modified BSD License'
|
|
38
38
|
|
|
@@ -228,7 +228,7 @@ class JsonPointer:
|
|
|
228
228
|
if part == '-':
|
|
229
229
|
return part
|
|
230
230
|
|
|
231
|
-
if not JsonPointer._RE_ARRAY_INDEX.
|
|
231
|
+
if not JsonPointer._RE_ARRAY_INDEX.fullmatch(str(part)):
|
|
232
232
|
raise JsonPointerException("'%s' is not a valid sequence index" % part)
|
|
233
233
|
|
|
234
234
|
return int(part)
|
|
@@ -42,6 +42,7 @@ CLASSIFIERS = [
|
|
|
42
42
|
'Programming Language :: Python :: 3.11',
|
|
43
43
|
'Programming Language :: Python :: 3.12',
|
|
44
44
|
'Programming Language :: Python :: 3.13',
|
|
45
|
+
'Programming Language :: Python :: 3.14',
|
|
45
46
|
'Programming Language :: Python :: Implementation :: CPython',
|
|
46
47
|
'Programming Language :: Python :: Implementation :: PyPy',
|
|
47
48
|
'Topic :: Software Development :: Libraries',
|
|
@@ -215,6 +215,10 @@ class WrongInputTests(unittest.TestCase):
|
|
|
215
215
|
def test_invalid_escape(self):
|
|
216
216
|
self.assertRaises(JsonPointerException, JsonPointer, '/foo/bar~2')
|
|
217
217
|
|
|
218
|
+
def test_leading_zero(self):
|
|
219
|
+
doc = [0, 1, 2]
|
|
220
|
+
self.assertRaises(JsonPointerException, resolve_pointer, doc, '/01')
|
|
221
|
+
|
|
218
222
|
|
|
219
223
|
class ToLastTests(unittest.TestCase):
|
|
220
224
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|