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 forcing a selector type into a subselector #299

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Gallaecio
Copy link
Member

Alternative to #298.

I’m not sure which one is the better approach, though.

But supporting this feature was part of one of the original iterations of JMESPath support, and it was removed at some point because we saw no use for it; it feels like this is a use case to justify its addition.

Fixes #297, resolves #298.

@dream2333
Copy link

Great! This approach is also viable, but users might still adhere to their old habits of not adding a type parameter. In such cases, operations on text type nodes could still lead to some hard-to-trace issues. Should we consider making the Selector's type strongly typed, requiring a conversion to a usable type before performing queries, to avoid implicit type conversions?

@Gallaecio
Copy link
Member Author

Should we consider making the Selector's type strongly typed, requiring a conversion to a usable type before performing queries, to avoid implicit type conversions?

Sounds interesting, could you elaborate? What user-facing API do you have in mind, how would it compare to passing the parameter?

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.

SelectorList.drop() removing elements doesn't work as expected
2 participants