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
..
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2021-02-08 13:48:04 -05:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2021-02-08 13:48:04 -05:00
2019-06-30 10:16:15 +02:00
2020-08-07 14:13:57 -04:00
2020-09-30 16:07:54 -04:00
2020-09-30 16:07:54 -04:00
2020-09-30 16:07:54 -04:00
2020-09-30 16:07:54 -04:00
2020-09-30 16:07:54 -04:00
2020-09-30 16:07:54 -04:00
2020-09-30 16:07:54 -04:00
2020-09-30 16:07:54 -04:00
2020-01-07 15:07:06 -05:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2020-09-30 16:07:54 -04:00
2020-09-30 16:07:54 -04:00
2020-09-30 16:07:54 -04:00
2019-06-30 10:16:15 +02:00
2020-09-30 16:07:54 -04:00
2020-09-30 16:07:54 -04:00
2020-09-30 16:07:54 -04:00
2019-06-30 10:16:15 +02:00
2020-09-30 16:07:54 -04:00
2019-06-30 10:16:15 +02:00
2020-09-30 16:07:54 -04:00
2020-09-30 16:07:54 -04:00
2020-09-30 16:07:54 -04:00
2020-09-30 16:07:54 -04:00
2020-09-30 16:07:54 -04:00
2020-09-30 16:07:54 -04:00
2020-09-30 16:07:54 -04:00
2019-06-30 10:16:15 +02:00
2020-11-18 11:59:10 -05:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2020-08-17 17:14:12 -04:00
2020-06-12 15:39:55 -04:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2020-02-12 14:00:08 -05:00
2019-06-30 10:16:15 +02:00
2020-02-14 14:48:30 -05:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2020-08-21 16:21:13 -04:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2020-08-18 09:35:32 -04:00
2019-06-30 10:16:15 +02:00
2020-06-12 09:57:01 -04:00
2020-07-07 15:20:20 -04:00
2020-09-01 14:02:19 -04:00
2020-05-25 16:50:12 -04:00
2020-06-12 08:45:14 -07:00
2019-06-30 10:16:15 +02:00
2020-04-06 09:24:23 -07:00
2020-10-14 07:53:41 -07:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2021-03-09 11:12:00 -05:00
2019-06-30 10:16:15 +02:00
2020-04-16 15:54:33 -04:00
2019-06-30 10:16:15 +02:00
2020-05-05 09:58:48 -07:00
2020-02-04 17:24:25 -05:00
2020-04-30 09:21:42 -04:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2020-06-09 14:21:53 -04:00
2021-03-12 08:28:22 -05:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2021-02-08 13:48:04 -05:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2021-02-05 14:01:58 -05:00
2020-10-28 15:30:04 -04:00
2020-02-13 15:32:58 -05:00
2020-02-13 15:32:58 -05:00
2020-12-14 11:07:15 -05:00
2019-06-30 10:16:15 +02:00
2020-09-30 16:07:54 -04:00
2019-06-30 10:16:15 +02:00
2019-06-30 10:16:15 +02:00
2020-02-13 15:32:58 -05:00
2019-06-30 10:16:15 +02:00
2020-09-22 17:33:09 -04:00
2021-02-22 14:21:45 -08:00
2021-02-22 14:21:45 -08:00
2021-03-12 13:12:37 -05:00
2021-02-21 20:27:20 -05:00
2020-10-08 11:22:20 -04:00
2019-06-30 10:16:15 +02:00
2020-08-11 11:43:01 -04:00