...

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

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

     1{
     2  "fields": [
     3    {
     4      "name": "x",
     5      "composite": {
     6        "fields": [
     7          {
     8            "name": "y",
     9            "primary": {
    10              "value": {
    11                "range": "TestCompile/fields/primary/nested.d2,0:5:5-0:8:8",
    12                "value": [
    13                  {
    14                    "string": "yes",
    15                    "raw_string": "yes"
    16                  }
    17                ]
    18              }
    19            },
    20            "composite": {
    21              "fields": [
    22                {
    23                  "name": "pqrs",
    24                  "references": [
    25                    {
    26                      "string": {
    27                        "range": "TestCompile/fields/primary/nested.d2,0:11:11-0:15:15",
    28                        "value": [
    29                          {
    30                            "string": "pqrs",
    31                            "raw_string": "pqrs"
    32                          }
    33                        ]
    34                      },
    35                      "key_path": {
    36                        "range": "TestCompile/fields/primary/nested.d2,0:11:11-0:15:15",
    37                        "path": [
    38                          {
    39                            "unquoted_string": {
    40                              "range": "TestCompile/fields/primary/nested.d2,0:11:11-0:15:15",
    41                              "value": [
    42                                {
    43                                  "string": "pqrs",
    44                                  "raw_string": "pqrs"
    45                                }
    46                              ]
    47                            }
    48                          }
    49                        ]
    50                      },
    51                      "context": {
    52                        "edge": null,
    53                        "key": {
    54                          "range": "TestCompile/fields/primary/nested.d2,0:11:11-0:16:16",
    55                          "key": {
    56                            "range": "TestCompile/fields/primary/nested.d2,0:11:11-0:15:15",
    57                            "path": [
    58                              {
    59                                "unquoted_string": {
    60                                  "range": "TestCompile/fields/primary/nested.d2,0:11:11-0:15:15",
    61                                  "value": [
    62                                    {
    63                                      "string": "pqrs",
    64                                      "raw_string": "pqrs"
    65                                    }
    66                                  ]
    67                                }
    68                              }
    69                            ]
    70                          },
    71                          "primary": {},
    72                          "value": {}
    73                        }
    74                      },
    75                      "due_to_glob": false,
    76                      "due_to_lazy_glob": false
    77                    }
    78                  ]
    79                }
    80              ],
    81              "edges": null
    82            },
    83            "references": [
    84              {
    85                "string": {
    86                  "range": "TestCompile/fields/primary/nested.d2,0:2:2-0:3:3",
    87                  "value": [
    88                    {
    89                      "string": "y",
    90                      "raw_string": "y"
    91                    }
    92                  ]
    93                },
    94                "key_path": {
    95                  "range": "TestCompile/fields/primary/nested.d2,0:0:0-0:3:3",
    96                  "path": [
    97                    {
    98                      "unquoted_string": {
    99                        "range": "TestCompile/fields/primary/nested.d2,0:0:0-0:1:1",
   100                        "value": [
   101                          {
   102                            "string": "x",
   103                            "raw_string": "x"
   104                          }
   105                        ]
   106                      }
   107                    },
   108                    {
   109                      "unquoted_string": {
   110                        "range": "TestCompile/fields/primary/nested.d2,0:2:2-0:3:3",
   111                        "value": [
   112                          {
   113                            "string": "y",
   114                            "raw_string": "y"
   115                          }
   116                        ]
   117                      }
   118                    }
   119                  ]
   120                },
   121                "context": {
   122                  "edge": null,
   123                  "key": {
   124                    "range": "TestCompile/fields/primary/nested.d2,0:0:0-0:17:17",
   125                    "key": {
   126                      "range": "TestCompile/fields/primary/nested.d2,0:0:0-0:3:3",
   127                      "path": [
   128                        {
   129                          "unquoted_string": {
   130                            "range": "TestCompile/fields/primary/nested.d2,0:0:0-0:1:1",
   131                            "value": [
   132                              {
   133                                "string": "x",
   134                                "raw_string": "x"
   135                              }
   136                            ]
   137                          }
   138                        },
   139                        {
   140                          "unquoted_string": {
   141                            "range": "TestCompile/fields/primary/nested.d2,0:2:2-0:3:3",
   142                            "value": [
   143                              {
   144                                "string": "y",
   145                                "raw_string": "y"
   146                              }
   147                            ]
   148                          }
   149                        }
   150                      ]
   151                    },
   152                    "primary": {
   153                      "unquoted_string": {
   154                        "range": "TestCompile/fields/primary/nested.d2,0:5:5-0:8:8",
   155                        "value": [
   156                          {
   157                            "string": "yes",
   158                            "raw_string": "yes"
   159                          }
   160                        ]
   161                      }
   162                    },
   163                    "value": {
   164                      "map": {
   165                        "range": "TestCompile/fields/primary/nested.d2,0:9:9-0:17:17",
   166                        "nodes": [
   167                          {
   168                            "map_key": {
   169                              "range": "TestCompile/fields/primary/nested.d2,0:11:11-0:16:16",
   170                              "key": {
   171                                "range": "TestCompile/fields/primary/nested.d2,0:11:11-0:15:15",
   172                                "path": [
   173                                  {
   174                                    "unquoted_string": {
   175                                      "range": "TestCompile/fields/primary/nested.d2,0:11:11-0:15:15",
   176                                      "value": [
   177                                        {
   178                                          "string": "pqrs",
   179                                          "raw_string": "pqrs"
   180                                        }
   181                                      ]
   182                                    }
   183                                  }
   184                                ]
   185                              },
   186                              "primary": {},
   187                              "value": {}
   188                            }
   189                          }
   190                        ]
   191                      }
   192                    }
   193                  }
   194                },
   195                "due_to_glob": false,
   196                "due_to_lazy_glob": false
   197              }
   198            ]
   199          }
   200        ],
   201        "edges": null
   202      },
   203      "references": [
   204        {
   205          "string": {
   206            "range": "TestCompile/fields/primary/nested.d2,0:0:0-0:1:1",
   207            "value": [
   208              {
   209                "string": "x",
   210                "raw_string": "x"
   211              }
   212            ]
   213          },
   214          "key_path": {
   215            "range": "TestCompile/fields/primary/nested.d2,0:0:0-0:3:3",
   216            "path": [
   217              {
   218                "unquoted_string": {
   219                  "range": "TestCompile/fields/primary/nested.d2,0:0:0-0:1:1",
   220                  "value": [
   221                    {
   222                      "string": "x",
   223                      "raw_string": "x"
   224                    }
   225                  ]
   226                }
   227              },
   228              {
   229                "unquoted_string": {
   230                  "range": "TestCompile/fields/primary/nested.d2,0:2:2-0:3:3",
   231                  "value": [
   232                    {
   233                      "string": "y",
   234                      "raw_string": "y"
   235                    }
   236                  ]
   237                }
   238              }
   239            ]
   240          },
   241          "context": {
   242            "edge": null,
   243            "key": {
   244              "range": "TestCompile/fields/primary/nested.d2,0:0:0-0:17:17",
   245              "key": {
   246                "range": "TestCompile/fields/primary/nested.d2,0:0:0-0:3:3",
   247                "path": [
   248                  {
   249                    "unquoted_string": {
   250                      "range": "TestCompile/fields/primary/nested.d2,0:0:0-0:1:1",
   251                      "value": [
   252                        {
   253                          "string": "x",
   254                          "raw_string": "x"
   255                        }
   256                      ]
   257                    }
   258                  },
   259                  {
   260                    "unquoted_string": {
   261                      "range": "TestCompile/fields/primary/nested.d2,0:2:2-0:3:3",
   262                      "value": [
   263                        {
   264                          "string": "y",
   265                          "raw_string": "y"
   266                        }
   267                      ]
   268                    }
   269                  }
   270                ]
   271              },
   272              "primary": {
   273                "unquoted_string": {
   274                  "range": "TestCompile/fields/primary/nested.d2,0:5:5-0:8:8",
   275                  "value": [
   276                    {
   277                      "string": "yes",
   278                      "raw_string": "yes"
   279                    }
   280                  ]
   281                }
   282              },
   283              "value": {
   284                "map": {
   285                  "range": "TestCompile/fields/primary/nested.d2,0:9:9-0:17:17",
   286                  "nodes": [
   287                    {
   288                      "map_key": {
   289                        "range": "TestCompile/fields/primary/nested.d2,0:11:11-0:16:16",
   290                        "key": {
   291                          "range": "TestCompile/fields/primary/nested.d2,0:11:11-0:15:15",
   292                          "path": [
   293                            {
   294                              "unquoted_string": {
   295                                "range": "TestCompile/fields/primary/nested.d2,0:11:11-0:15:15",
   296                                "value": [
   297                                  {
   298                                    "string": "pqrs",
   299                                    "raw_string": "pqrs"
   300                                  }
   301                                ]
   302                              }
   303                            }
   304                          ]
   305                        },
   306                        "primary": {},
   307                        "value": {}
   308                      }
   309                    }
   310                  ]
   311                }
   312              }
   313            }
   314          },
   315          "due_to_glob": false,
   316          "due_to_lazy_glob": false
   317        }
   318      ]
   319    }
   320  ],
   321  "edges": null
   322}

View as plain text