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

Feature Request: Provide utility functions for converting between path formats #95

Open
jcmcken opened this issue Apr 11, 2019 · 0 comments

Comments

@jcmcken
Copy link

jcmcken commented Apr 11, 2019

I think it would be useful to promote the _path_join function to a public function (path_join) and have the reverse function also available (path_split?).

In my use case, I need to check certain things about keys within the path itself, so I need to re-split the JSON patch path (convert it from a string to a tuple). Having to reverse-engineer the _path_join function in my own code is not hard, but I would prefer if the library that's creating that path in the first place also has a way to reverse it if I want to convert in the opposite direction.

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

No branches or pull requests

1 participant