python-json-pointer
python-json-pointer copied to clipboard
Resolve JSON Pointers in Python
I had to revert the optimizations from #16, because the tests of jsonpatch failed with ```` $ ./tests.py ........E.......E................................................................... ====================================================================== ERROR: test_append (__main__.ApplyPatchTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File...
Versions prior to 3.7 are EoL, and the lack of access to `from __future__ import annotations` in 3.7 is trivial, the regular maintaince of "a major bump happened" should be...
- Migrate to `pyproject.toml` - Using poetry. - Defining all project settings in the TOML file. - Included package, script, etc. (no need for MANIFEST.in) - Dependencies (no need for...
## Issue The current regex pattern used to validate array indices in the `jsonpointer` package incorrectly accepts indices with leading zeros (such as "01", "00", "0123"), which violates the JSON...
- [x] Analyze the issues with the jsonpointer command-line tool - [x] Understand the differences between v1 and v2 behavior - [x] Create test files to verify current behavior -...
### Description The current regex pattern used to validate array indices in the `jsonpointer` package incorrectly accepts indices with leading zeros, which violates JSON Pointer specification (RFC 6901). **Current Implementation:**...
Currently, the `JsonPointer.join()` method always returns a `JsonPointer` instance, even when called from a subclass: ```python class Pointer(jsonpointer.JsonPointer): ... base = Pointer("/some/object") end = Pointer("/actual/value") full = base.join(end) print(type(full)) #...