2020-12-11 19:09:25 +01:00
|
|
|
{
|
2021-03-16 14:46:36 +01:00
|
|
|
"format_version": "0.1",
|
2020-12-11 19:09:25 +01:00
|
|
|
"valid": false,
|
|
|
|
"error_count": 1,
|
|
|
|
"warning_count": 0,
|
|
|
|
"diagnostics": [
|
|
|
|
{
|
|
|
|
"severity": "error",
|
|
|
|
"summary": "Unsupported block type",
|
|
|
|
"detail": "Blocks of type \"resorce\" are not expected here. Did you mean \"resource\"?",
|
|
|
|
"range": {
|
|
|
|
"filename": "testdata/validate-invalid/main.tf",
|
|
|
|
"start": {
|
|
|
|
"line": 1,
|
|
|
|
"column": 1,
|
|
|
|
"byte": 0
|
|
|
|
},
|
|
|
|
"end": {
|
|
|
|
"line": 1,
|
|
|
|
"column": 8,
|
|
|
|
"byte": 7
|
|
|
|
}
|
2021-03-11 18:57:07 +01:00
|
|
|
},
|
|
|
|
"snippet": {
|
|
|
|
"context": null,
|
|
|
|
"code": "resorce \"test_instance\" \"foo\" { # Intentional typo to test error reporting",
|
|
|
|
"start_line": 1,
|
|
|
|
"highlight_start_offset": 0,
|
|
|
|
"highlight_end_offset": 7,
|
|
|
|
"values": []
|
2020-12-11 19:09:25 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|