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

Compress paths into tree #47

Merged
merged 22 commits into from
Aug 11, 2020
Merged

Compress paths into tree #47

merged 22 commits into from
Aug 11, 2020

Conversation

Skn0tt
Copy link
Collaborator

@Skn0tt Skn0tt commented Aug 3, 2020

Depends on #37, #36

This PR implements Idea 1 described in #11.

Instead of saving paths like so ...

{
  "a.deep.nested.path.containing.multiple.keys": "map",
  "a.deep.nested.path.containing.multiple.keys.a": "number",
  "a.deep.nested.path.containing.multiple.keys.b": "number",
}

... we save it like so:

{
  "a.deep.nested.path.containing.multiple.keys": [
    "map",
    { "a": ["number"], "b": ["number"] }
  ]
}

merelinguist
merelinguist previously approved these changes Aug 5, 2020
@Skn0tt Skn0tt marked this pull request as ready for review August 10, 2020 20:53
@Skn0tt Skn0tt requested a review from merelinguist August 10, 2020 20:53
Copy link
Contributor

@merelinguist merelinguist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work 😄

@merelinguist merelinguist merged commit f168d2e into main Aug 11, 2020
@merelinguist merelinguist deleted the compress-paths-into-tree branch August 11, 2020 13:05
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.

2 participants