...

Text file src/oss.terrastruct.com/d2/testdata/d2ir/TestCompile/fields/nested.exp.json

Documentation: oss.terrastruct.com/d2/testdata/d2ir/TestCompile/fields

     1{
     2  "fields": [
     3    {
     4      "name": "x",
     5      "composite": {
     6        "fields": [
     7          {
     8            "name": "y",
     9            "primary": {
    10              "value": {
    11                "range": "TestCompile/fields/nested.d2,0:5:5-0:8:8",
    12                "value": [
    13                  {
    14                    "string": "yes",
    15                    "raw_string": "yes"
    16                  }
    17                ]
    18              }
    19            },
    20            "references": [
    21              {
    22                "string": {
    23                  "range": "TestCompile/fields/nested.d2,0:2:2-0:3:3",
    24                  "value": [
    25                    {
    26                      "string": "y",
    27                      "raw_string": "y"
    28                    }
    29                  ]
    30                },
    31                "key_path": {
    32                  "range": "TestCompile/fields/nested.d2,0:0:0-0:3:3",
    33                  "path": [
    34                    {
    35                      "unquoted_string": {
    36                        "range": "TestCompile/fields/nested.d2,0:0:0-0:1:1",
    37                        "value": [
    38                          {
    39                            "string": "x",
    40                            "raw_string": "x"
    41                          }
    42                        ]
    43                      }
    44                    },
    45                    {
    46                      "unquoted_string": {
    47                        "range": "TestCompile/fields/nested.d2,0:2:2-0:3:3",
    48                        "value": [
    49                          {
    50                            "string": "y",
    51                            "raw_string": "y"
    52                          }
    53                        ]
    54                      }
    55                    }
    56                  ]
    57                },
    58                "context": {
    59                  "edge": null,
    60                  "key": {
    61                    "range": "TestCompile/fields/nested.d2,0:0:0-0:8:8",
    62                    "key": {
    63                      "range": "TestCompile/fields/nested.d2,0:0:0-0:3:3",
    64                      "path": [
    65                        {
    66                          "unquoted_string": {
    67                            "range": "TestCompile/fields/nested.d2,0:0:0-0:1:1",
    68                            "value": [
    69                              {
    70                                "string": "x",
    71                                "raw_string": "x"
    72                              }
    73                            ]
    74                          }
    75                        },
    76                        {
    77                          "unquoted_string": {
    78                            "range": "TestCompile/fields/nested.d2,0:2:2-0:3:3",
    79                            "value": [
    80                              {
    81                                "string": "y",
    82                                "raw_string": "y"
    83                              }
    84                            ]
    85                          }
    86                        }
    87                      ]
    88                    },
    89                    "primary": {},
    90                    "value": {
    91                      "unquoted_string": {
    92                        "range": "TestCompile/fields/nested.d2,0:5:5-0:8:8",
    93                        "value": [
    94                          {
    95                            "string": "yes",
    96                            "raw_string": "yes"
    97                          }
    98                        ]
    99                      }
   100                    }
   101                  }
   102                },
   103                "due_to_glob": false,
   104                "due_to_lazy_glob": false
   105              }
   106            ]
   107          }
   108        ],
   109        "edges": null
   110      },
   111      "references": [
   112        {
   113          "string": {
   114            "range": "TestCompile/fields/nested.d2,0:0:0-0:1:1",
   115            "value": [
   116              {
   117                "string": "x",
   118                "raw_string": "x"
   119              }
   120            ]
   121          },
   122          "key_path": {
   123            "range": "TestCompile/fields/nested.d2,0:0:0-0:3:3",
   124            "path": [
   125              {
   126                "unquoted_string": {
   127                  "range": "TestCompile/fields/nested.d2,0:0:0-0:1:1",
   128                  "value": [
   129                    {
   130                      "string": "x",
   131                      "raw_string": "x"
   132                    }
   133                  ]
   134                }
   135              },
   136              {
   137                "unquoted_string": {
   138                  "range": "TestCompile/fields/nested.d2,0:2:2-0:3:3",
   139                  "value": [
   140                    {
   141                      "string": "y",
   142                      "raw_string": "y"
   143                    }
   144                  ]
   145                }
   146              }
   147            ]
   148          },
   149          "context": {
   150            "edge": null,
   151            "key": {
   152              "range": "TestCompile/fields/nested.d2,0:0:0-0:8:8",
   153              "key": {
   154                "range": "TestCompile/fields/nested.d2,0:0:0-0:3:3",
   155                "path": [
   156                  {
   157                    "unquoted_string": {
   158                      "range": "TestCompile/fields/nested.d2,0:0:0-0:1:1",
   159                      "value": [
   160                        {
   161                          "string": "x",
   162                          "raw_string": "x"
   163                        }
   164                      ]
   165                    }
   166                  },
   167                  {
   168                    "unquoted_string": {
   169                      "range": "TestCompile/fields/nested.d2,0:2:2-0:3:3",
   170                      "value": [
   171                        {
   172                          "string": "y",
   173                          "raw_string": "y"
   174                        }
   175                      ]
   176                    }
   177                  }
   178                ]
   179              },
   180              "primary": {},
   181              "value": {
   182                "unquoted_string": {
   183                  "range": "TestCompile/fields/nested.d2,0:5:5-0:8:8",
   184                  "value": [
   185                    {
   186                      "string": "yes",
   187                      "raw_string": "yes"
   188                    }
   189                  ]
   190                }
   191              }
   192            }
   193          },
   194          "due_to_glob": false,
   195          "due_to_lazy_glob": false
   196        }
   197      ]
   198    }
   199  ],
   200  "edges": null
   201}

View as plain text