github.com/graywolf-at-work-2/terraform-vendor@v1.4.5/internal/command/views/json/testdata/diagnostic/error-with-source-code-subject-with-multiple-expression-values.json (about)

     1  {
     2    "severity": "error",
     3    "summary": "Catastrophic failure",
     4    "detail": "Basically, everything went wrong",
     5    "range": {
     6      "filename": "values.tf",
     7      "start": {
     8        "line": 1,
     9        "column": 1,
    10        "byte": 0
    11      },
    12      "end": {
    13        "line": 13,
    14        "column": 2,
    15        "byte": 102
    16      }
    17    },
    18    "snippet": {
    19      "context": null,
    20      "code": "[\n  var.a,\n  var.b,\n  var.c,\n  var.d,\n  var.e,\n  var.f,\n  var.g,\n  var.h,\n  var.i,\n  var.j,\n  var.k,\n]",
    21      "start_line": 1,
    22      "highlight_start_offset": 0,
    23      "highlight_end_offset": 102,
    24      "values": [
    25        {
    26          "traversal": "var.a",
    27          "statement": "is true"
    28        },
    29        {
    30          "traversal": "var.b",
    31          "statement": "is 123.45"
    32        },
    33        {
    34          "traversal": "var.c",
    35          "statement": "is null"
    36        },
    37        {
    38          "traversal": "var.d",
    39          "statement": "has a sensitive value"
    40        },
    41        {
    42          "traversal": "var.e",
    43          "statement": "is false"
    44        },
    45        {
    46          "traversal": "var.f",
    47          "statement": "is empty list of string"
    48        },
    49        {
    50          "traversal": "var.g",
    51          "statement": "is map of string with 1 element"
    52        },
    53        {
    54          "traversal": "var.h",
    55          "statement": "is list of string with 3 elements"
    56        },
    57        {
    58          "traversal": "var.i",
    59          "statement": "is object with no attributes"
    60        },
    61        {
    62          "traversal": "var.j",
    63          "statement": "is object with 1 attribute \"foo\""
    64        },
    65        {
    66          "traversal": "var.k",
    67          "statement": "is object with 2 attributes"
    68        }
    69      ]
    70    }
    71  }