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
..
2021-02-23 10:09:30 -05:00
2021-01-26 20:39:11 +01:00
2021-02-16 07:19:22 -05:00
2021-03-11 08:54:18 -05:00
2021-03-12 13:12:37 -05:00
2021-02-05 14:01:58 -05:00
2020-04-06 09:24:23 -07:00
2021-03-12 08:28:22 -05:00
2021-02-23 10:19:24 -05:00
2021-03-12 13:12:37 -05:00
2021-03-12 13:12:37 -05:00
2020-12-10 09:27:02 -05:00
2021-02-22 11:47:40 -05:00
2021-02-22 11:47:40 -05:00
2021-02-25 11:26:05 -05:00
2017-12-05 10:24:04 -08:00
2018-10-16 19:11:09 -07:00
2014-07-12 20:59:16 -07:00
2015-04-29 13:07:13 -05:00
2021-02-11 15:06:39 -05:00
2021-02-02 13:21:26 -05:00
2016-11-14 00:32:01 -08:00
2021-01-20 13:54:00 -05:00
2021-02-18 10:13:43 -05:00
2021-02-22 09:25:56 -05:00
2016-12-10 14:30:40 -05:00
2021-02-08 13:48:04 -05:00
2020-09-29 08:46:51 -04:00
2021-02-22 09:25:56 -05:00
2021-02-02 13:21:26 -05:00
2021-02-22 09:25:56 -05:00
2021-02-02 13:21:26 -05:00
2021-02-22 09:25:56 -05:00
2019-01-14 11:33:21 -08:00
2021-02-18 10:13:43 -05:00
2021-02-22 09:25:56 -05:00
2021-03-09 11:12:00 -05:00
2021-03-11 08:54:18 -05:00
2020-09-15 19:30:48 -04:00
2021-02-22 09:25:56 -05:00
2020-02-06 15:00:55 -05:00
2021-02-22 09:25:56 -05:00
2021-02-16 07:19:22 -05:00
2021-02-16 07:19:22 -05:00
2021-02-16 07:19:22 -05:00
2021-02-11 15:06:39 -05:00
2020-10-09 09:26:23 -07:00
2019-07-18 16:11:41 -04:00
2021-02-22 14:21:45 -08:00
2020-12-02 13:59:19 -05:00
2019-10-02 15:10:21 -07:00
2021-02-22 11:47:40 -05:00
2021-02-16 08:48:31 -05:00
2021-02-22 09:25:56 -05:00
2021-02-26 16:43:03 -05:00
2021-02-26 16:43:03 -05:00
2020-09-29 08:46:51 -04:00
2020-09-29 08:46:51 -04:00
2021-02-18 10:13:43 -05:00
2020-12-02 12:45:00 -05:00
2021-02-22 09:25:56 -05:00
2021-02-22 09:25:56 -05:00
2021-03-12 08:28:22 -05:00
2021-02-22 09:25:56 -05:00
2020-10-20 10:14:03 -04:00
2021-02-22 09:25:56 -05:00
2021-02-22 09:25:56 -05:00
2021-02-22 11:58:52 -05:00
2021-02-26 16:43:03 -05:00
2021-02-18 12:08:08 -05:00
2021-02-22 09:25:56 -05:00
2021-02-22 09:25:56 -05:00
2020-12-14 11:07:15 -05:00
2021-02-22 09:25:56 -05:00
2020-12-14 11:07:15 -05:00
2021-02-16 07:19:22 -05:00
2021-02-22 09:25:56 -05:00
2020-10-08 08:42:16 -04:00
2021-02-22 09:25:56 -05:00
2021-02-16 07:19:22 -05:00
2021-02-22 09:25:56 -05:00
2021-02-22 09:25:56 -05:00
2021-02-22 09:25:56 -05:00
2021-02-16 07:19:22 -05:00
2021-02-22 09:25:56 -05:00
2021-02-18 10:13:43 -05:00
2021-02-22 09:25:56 -05:00
2018-10-16 19:14:11 -07:00
2021-02-16 07:19:22 -05:00
2021-02-22 09:25:56 -05:00
2021-02-22 14:21:45 -08:00
2021-02-22 14:21:45 -08:00
2020-10-21 14:10:06 -04:00
2020-10-21 14:10:06 -04:00
2021-02-16 07:19:22 -05:00
2021-02-22 09:25:56 -05:00
2021-02-16 07:19:22 -05:00
2021-02-22 09:25:56 -05:00
2021-02-18 10:13:43 -05:00
2021-03-12 13:12:37 -05:00
2021-01-12 16:35:30 -05:00
2021-02-22 09:25:56 -05:00
2021-02-16 07:19:22 -05:00
2021-02-22 09:25:56 -05:00
2021-02-22 09:25:56 -05:00
2021-02-22 09:25:56 -05:00
2021-02-22 09:25:56 -05:00
2021-02-22 09:25:56 -05:00
2021-02-22 09:25:56 -05:00