Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Empty List Path In get #194

Merged

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
7 checks passed
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