afterschoolstudio / Depot

Structured data editor built inside VS Code
Apache License 2.0
205 stars 20 forks source link

Need to be able to insert top level Object properites that aren't indexed in a list #24

Closed kkukshtel closed 3 years ago

kkukshtel commented 3 years ago

You should be able to describe this structure inside a line in Depot, specifically the props:

{
        "guid": "ba90a294-8065-4c5b-b7f0-252d245a3275",
        "id": "0",
        "props": {
          "guid": "9c385502-7766-4210-984a-7e0b435b6c9a",
          "newInt": 0,
          "newBool": true
        }

Right now you can only describe lists as nested types, meaning that indexing a nested value of something needs to work by array index like lines[0].props[0].someKey. Instead, you should be able to do lines[0].props.someKey

kkukshtel commented 3 years ago

implemented in 18df6b068a32dda1927ca99ebad10de38dd82d91