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

Can we expose some methods and types? #73

Closed
paomian opened this issue Oct 9, 2024 · 2 comments
Closed

Can we expose some methods and types? #73

paomian opened this issue Oct 9, 2024 · 2 comments

Comments

@paomian
Copy link
Contributor

paomian commented Oct 9, 2024

Can we expose methods and types so that other libraries or applications can rely on such libraries to implement json path functionality for their own json like types?

I want to impl Path trait for my own json like Enum type. So I'm relying on such libraries in my application and want to implement json path functionality for my json like types, but there are some methods and types that I can't call, such as flat_map_slice JsonPathIndex and I'd have to fork a copy of the code to expose these methods and types. Has it been considered to provide trait and utility methods for other libraries or applications to use?

@besok
Copy link
Owner

besok commented Oct 10, 2024

That sounds good, we need to implement it

@paomian
Copy link
Contributor Author

paomian commented Oct 12, 2024

I submitted a #74 to prove my idea. It is possible to define a trait that, once implemented, will allow you to use the functionality that the json path brings. So far it compiles and all tests pass.

@paomian paomian closed this as completed Oct 16, 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

No branches or pull requests

2 participants