Skip to content

Dotted column notation #5

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

Closed
wants to merge 2 commits into from
Closed

Dotted column notation #5

wants to merge 2 commits into from

Conversation

maximkou
Copy link
Contributor

Add support nested attributes #3

@clue
Copy link
Owner

clue commented Aug 28, 2014

Awesome! Your changes are very much appreciated 👍

Your changes look good at first sight, I'll review this more thoroughly shortly.

@maximkou
Copy link
Contributor Author

Ok, I hope my contribution will benefit for project.

@clue
Copy link
Owner

clue commented Oct 29, 2014

Ok, I hope my contribution will benefit for project.

Absolutely! 👍 I'd love to merge this soon to move this project forward.

The first commit looks good to me.

The second commit also looks good to me, however I'd like to question if this is really needed or if this might actually do more harm in the future.

This project currently aims to be the reference implementation of the https://github.com/clue/json-query-language specification. The current spec (draft) demands support for dotted notation and makes no mention of any other separators.

Adding support for other separators essentially allows for incompatible filter definitions, which is something I'd like to avoid, unless we find a reasonable wait to improve interoperability. If you deem this to be a useful feature, I'd love to discuss this in the context of the specification (new issue?).

Also, one thing that will be needed before #3 can be considered completed is escaping of the dot by prefixing it with an backslashes. I'll leave to up to you if you if this ought to be implemented as part of this PR or at a later stage.

Either way, thanks for your PR! 👍

@clue clue mentioned this pull request Oct 29, 2014
@clue clue closed this in 327eb60 Nov 4, 2014
@clue
Copy link
Owner

clue commented Nov 4, 2014

Thanks for your contribution, I've just merged your first commit! 👍

As per the above discussion, if you deem it useful to support custom separator characters, I'd love to discuss this in another ticket. Thanks!

@clue clue mentioned this pull request Nov 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants