github.com/iaas-resource-provision/iaas-rpc@v1.0.7-0.20211021023331-ed21f798c408/internal/command/testdata/validate-invalid/missing_var/output.json (about)

     1  {
     2    "format_version": "0.1",
     3    "valid": false,
     4    "error_count": 1,
     5    "warning_count": 0,
     6    "diagnostics": [
     7      {
     8        "severity": "error",
     9        "summary": "Reference to undeclared input variable",
    10        "detail": "An input variable with the name \"description\" has not been declared. This variable can be declared with a variable \"description\" {} block.",
    11        "range": {
    12          "filename": "testdata/validate-invalid/missing_var/main.tf",
    13          "start": {
    14            "line": 6,
    15            "column": 21,
    16            "byte": 117
    17          },
    18          "end": {
    19            "line": 6,
    20            "column": 36,
    21            "byte": 132
    22          }
    23        },
    24        "snippet": {
    25          "context": "resource \"test_instance\" \"foo\"",
    26          "code": "      description = var.description",
    27          "start_line": 6,
    28          "highlight_start_offset": 20,
    29          "highlight_end_offset": 35,
    30          "values": []
    31        }
    32      }
    33    ]
    34  }