terraform/command/testdata/validate-invalid
Alisdair McDiarmid c92826c14d cli: Use standard JSON diagnostics for validate
Now that we have a comprehensive JSON diagnostic structure, we can use
it in the `validate -json` output instead of the inline version. Note
that this changes the output of `validate -json` in two ways:

1. We fix some off-by-one errors caused by zero-width highlight ranges.
   This aligns the JSON diagnostic output with the text output seen by
   most Terraform users, so I consider this a bug fix.
2. We add the `snippet` field to the JSON diagnostics where available.
   This is purely additive and is permitted under our JSON format
   stability guarantees.
2021-03-12 13:12:37 -05:00
..
incorrectmodulename cli: Use standard JSON diagnostics for validate 2021-03-12 13:12:37 -05:00
interpolation cli: Use standard JSON diagnostics for validate 2021-03-12 13:12:37 -05:00
missing_defined_var command: Add tests for terraform validate -json 2020-12-11 13:09:25 -05:00
missing_quote cli: Use standard JSON diagnostics for validate 2021-03-12 13:12:37 -05:00
missing_var cli: Use standard JSON diagnostics for validate 2021-03-12 13:12:37 -05:00
multiple_modules cli: Use standard JSON diagnostics for validate 2021-03-12 13:12:37 -05:00
multiple_providers cli: Use standard JSON diagnostics for validate 2021-03-12 13:12:37 -05:00
multiple_resources cli: Use standard JSON diagnostics for validate 2021-03-12 13:12:37 -05:00
outputs cli: Use standard JSON diagnostics for validate 2021-03-12 13:12:37 -05:00
main.tf Standardise directory name for test data 2019-06-30 10:16:15 +02:00
output.json cli: Use standard JSON diagnostics for validate 2021-03-12 13:12:37 -05:00