Skip to content

Compress paths into tree#47

Merged
merelinguist merged 22 commits intomainfrom
compress-paths-into-tree
Aug 11, 2020
Merged

Compress paths into tree#47
merelinguist merged 22 commits intomainfrom
compress-paths-into-tree

Conversation

@Skn0tt
Copy link
Copy Markdown
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
Copy Markdown
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