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 ,
2021-02-19 16:27:09 +01:00
"warning_count" : 0 ,
2020-12-11 19:09:25 +01:00
"diagnostics" : [
{
"severity" : "error" ,
"summary" : "Reference to undeclared input variable" ,
"detail" : "An input variable with the name \"description\" has not been declared. This variable can be declared with a variable \"description\" {} block." ,
"range" : {
"filename" : "testdata/validate-invalid/missing_var/main.tf" ,
"start" : {
"line" : 6 ,
2021-02-19 16:27:09 +01:00
"column" : 21 ,
"byte" : 117
2020-12-11 19:09:25 +01:00
} ,
"end" : {
"line" : 6 ,
2021-02-19 16:27:09 +01:00
"column" : 36 ,
"byte" : 132
2020-12-11 19:09:25 +01:00
}
2021-03-11 18:57:07 +01:00
} ,
"snippet" : {
"context" : "resource \"test_instance\" \"foo\"" ,
"code" : " description = var.description" ,
"start_line" : 6 ,
"highlight_start_offset" : 20 ,
"highlight_end_offset" : 35 ,
"values" : [ ]
2020-12-11 19:09:25 +01:00
}
}
]
}