-
-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Description
Can you explain what the hash prefix does and how you intend it to work? I've got all but 3 tests in test_json_pointer.py passing. But I'm not exactly sure how the hash symbol is supposed to work. Can you explain this test case?
def test_non_standard_index_pointer() -> None:
data = {"foo": {"bar": [1, 2, 3], "#baz": "hello"}}
assert JSONPointer("/foo/bar/#1").resolve(data) == 1
with pytest.raises(JSONPointerIndexError):
JSONPointer("/foo/bar/#9").resolve(data)Metadata
Metadata
Assignees
Labels
No labels