2020-12-11 19:09:25 +01:00
|
|
|
{
|
2021-09-09 17:25:35 +02:00
|
|
|
"format_version": "0.1",
|
2020-12-11 19:09:25 +01:00
|
|
|
"valid": false,
|
|
|
|
"error_count": 2,
|
|
|
|
"warning_count": 0,
|
|
|
|
"diagnostics": [
|
|
|
|
{
|
|
|
|
"severity": "error",
|
|
|
|
"summary": "Missing required argument",
|
|
|
|
"detail": "The argument \"value\" is required, but no definition was found.",
|
|
|
|
"range": {
|
|
|
|
"filename": "testdata/validate-invalid/outputs/main.tf",
|
|
|
|
"start": {
|
|
|
|
"line": 1,
|
|
|
|
"column": 18,
|
|
|
|
"byte": 17
|
|
|
|
},
|
|
|
|
"end": {
|
|
|
|
"line": 1,
|
2021-03-11 18:57:07 +01:00
|
|
|
"column": 19,
|
|
|
|
"byte": 18
|
2020-12-11 19:09:25 +01:00
|
|
|
}
|
2021-03-11 18:57:07 +01:00
|
|
|
},
|
|
|
|
"snippet": {
|
|
|
|
"context": "output \"myvalue\"",
|
|
|
|
"code": "output \"myvalue\" {",
|
|
|
|
"start_line": 1,
|
|
|
|
"highlight_start_offset": 17,
|
|
|
|
"highlight_end_offset": 18,
|
|
|
|
"values": []
|
2020-12-11 19:09:25 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"severity": "error",
|
|
|
|
"summary": "Unsupported argument",
|
|
|
|
"detail": "An argument named \"values\" is not expected here. Did you mean \"value\"?",
|
|
|
|
"range": {
|
|
|
|
"filename": "testdata/validate-invalid/outputs/main.tf",
|
|
|
|
"start": {
|
|
|
|
"line": 2,
|
|
|
|
"column": 3,
|
|
|
|
"byte": 21
|
|
|
|
},
|
|
|
|
"end": {
|
|
|
|
"line": 2,
|
|
|
|
"column": 9,
|
|
|
|
"byte": 27
|
|
|
|
}
|
2021-03-11 18:57:07 +01:00
|
|
|
},
|
|
|
|
"snippet": {
|
|
|
|
"context": "output \"myvalue\"",
|
|
|
|
"code": " values = \"Some value\"",
|
|
|
|
"start_line": 2,
|
|
|
|
"highlight_start_offset": 2,
|
|
|
|
"highlight_end_offset": 8,
|
|
|
|
"values": []
|
2020-12-11 19:09:25 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|