github.com/iaas-resource-provision/iaas-rpc@v1.0.7-0.20211021023331-ed21f798c408/internal/command/testdata/validate-invalid/outputs/output.json (about)

     1  {
     2    "format_version": "0.1",
     3    "valid": false,
     4    "error_count": 2,
     5    "warning_count": 0,
     6    "diagnostics": [
     7      {
     8        "severity": "error",
     9        "summary": "Missing required argument",
    10        "detail": "The argument \"value\" is required, but no definition was found.",
    11        "range": {
    12          "filename": "testdata/validate-invalid/outputs/main.tf",
    13          "start": {
    14            "line": 1,
    15            "column": 18,
    16            "byte": 17
    17          },
    18          "end": {
    19            "line": 1,
    20            "column": 19,
    21            "byte": 18
    22          }
    23        },
    24        "snippet": {
    25          "context": "output \"myvalue\"",
    26          "code": "output \"myvalue\" {",
    27          "start_line": 1,
    28          "highlight_start_offset": 17,
    29          "highlight_end_offset": 18,
    30          "values": []
    31        }
    32      },
    33      {
    34        "severity": "error",
    35        "summary": "Unsupported argument",
    36        "detail": "An argument named \"values\" is not expected here. Did you mean \"value\"?",
    37        "range": {
    38          "filename": "testdata/validate-invalid/outputs/main.tf",
    39          "start": {
    40            "line": 2,
    41            "column": 3,
    42            "byte": 21
    43          },
    44          "end": {
    45            "line": 2,
    46            "column": 9,
    47            "byte": 27
    48          }
    49        },
    50        "snippet": {
    51          "context": "output \"myvalue\"",
    52          "code": "  values = \"Some value\"",
    53          "start_line": 2,
    54          "highlight_start_offset": 2,
    55          "highlight_end_offset": 8,
    56          "values": []
    57        }
    58      }
    59    ]
    60  }