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

     1  {
     2    "severity": "error",
     3    "summary": "Wrong noises",
     4    "detail": "Biological sounds are not allowed",
     5    "range": {
     6      "filename": "test.tf",
     7      "start": {
     8        "line": 2,
     9        "column": 9,
    10        "byte": 42
    11      },
    12      "end": {
    13        "line": 2,
    14        "column": 26,
    15        "byte": 59
    16      }
    17    },
    18    "snippet": {
    19      "context": "resource \"test_resource\" \"test\"",
    20      "code": "  foo = var.boop[\"hello!\"]",
    21      "start_line": 2,
    22      "highlight_start_offset": 8,
    23      "highlight_end_offset": 25,
    24      "values": [
    25        {
    26          "traversal": "var.boop[\"hello!\"]",
    27          "statement": "is a string, known only after apply"
    28        }
    29      ]
    30    }
    31  }