2020-12-11 19:09:25 +01:00
|
|
|
{
|
|
|
|
"valid": false,
|
|
|
|
"error_count": 1,
|
|
|
|
"warning_count": 0,
|
|
|
|
"diagnostics": [
|
|
|
|
{
|
|
|
|
"severity": "error",
|
|
|
|
"summary": "Invalid reference",
|
|
|
|
"detail": "A reference to a resource type must be followed by at least one attribute access, specifying the resource name.",
|
|
|
|
"range": {
|
|
|
|
"filename": "testdata/validate-invalid/missing_quote/main.tf",
|
|
|
|
"start": {
|
|
|
|
"line": 6,
|
|
|
|
"column": 14,
|
|
|
|
"byte": 110
|
|
|
|
},
|
|
|
|
"end": {
|
|
|
|
"line": 6,
|
|
|
|
"column": 18,
|
|
|
|
"byte": 114
|
|
|
|
}
|
2021-03-11 18:57:07 +01:00
|
|
|
},
|
|
|
|
"snippet": {
|
|
|
|
"context": "resource \"test_instance\" \"foo\"",
|
|
|
|
"code": " name = test",
|
|
|
|
"start_line": 6,
|
|
|
|
"highlight_start_offset": 13,
|
|
|
|
"highlight_end_offset": 17,
|
|
|
|
"values": []
|
2020-12-11 19:09:25 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|