Skip to content

Conversation

squatched
Copy link
Contributor

Solves Issue #193. Currently, dpath.get() works with a path of '/' by returning the value of the object passed in. This behavior is not reflected with an empty list. Now, passing an empty list to dpath.get() will behave the same way (returning the root object value).

squatched and others added 3 commits May 31, 2024 14:16
Solves Issue dpath-maintainers#193. Currently, dpath.get() works with a path of '/' by
returning the value of the object passed in. This behavior is not
reflected with an empty list. Now, passing an empty list to dpath.get()
will behave the same way (returning the root object value).
@moomoohk moomoohk linked an issue Jun 11, 2024 that may be closed by this pull request
@moomoohk moomoohk merged commit 22b6c01 into dpath-maintainers:master Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dpath.get Empty List Path Yields Exception Rather Than Root Object
2 participants