cli: Add format version to validate -json output

In line with the other complex JSON output formats for plan and provider
schema, here we add an explicit `format_version` field to the JSON
output of terraform validate.
This commit is contained in:
Alisdair McDiarmid
2021-03-16 09:46:36 -04:00
parent d4e7a74f7e
commit 46a29b13ed
13 changed files with 28 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
{
"format_version": "0.1",
"valid": false,
"error_count": 2,
"warning_count": 0,