Alisdair McDiarmid
9497b2cd6f
json-output: Fix unknowns for tuples and sets
...
The JSON output for sequences previously omitted unknown values for
tuples and sets, which made it impossible to interpret the corresponding
unknown marks. For example, consider this resource:
resource "example_resource" "example" {
tags = toset(["alpha", timestamp(), "charlie"])
}
This would previously be encoded in JSON as:
"after": {
"tags": ["alpha", "charlie"]
},
"after_unknown": {
"id": true,
"tags": [false, true, false]
},
That is, the timestamp value would be omitted from the output
altogether, while the corresponding unknown marks would include a value
for each of the set members.
This commit changes the behaviour to:
"after": {
"tags": ["alpha", null, "charlie"]
},
"after_unknown": {
"id": true,
"tags": [false, true, false]
},
This aligns tuples and sets with the prior behaviour for lists, and
makes it clear which elements are known and which are unknown.
2022-06-13 14:33:40 -04:00
..
2022-01-13 11:00:03 -06:00
2022-04-15 12:38:14 -06:00
2021-08-17 15:20:05 -07:00
2022-05-23 16:48:34 -07:00
2022-05-09 11:12:47 -07:00
2022-02-19 01:55:09 +09:00
2022-06-13 14:33:40 -04:00
2021-10-28 16:00:02 -04:00
2022-04-27 13:30:15 -04:00
2022-04-27 13:30:15 -04:00
2022-05-09 11:12:47 -07:00
2021-05-17 14:09:07 -07:00
2022-04-08 17:34:16 +01:00
2022-04-08 17:34:16 +01:00
2022-04-08 17:34:16 +01:00
2021-10-29 21:23:28 -05:00
2022-04-08 17:34:16 +01:00
2022-01-08 14:41:20 +11:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2022-04-08 17:34:16 +01:00
2021-05-17 14:09:07 -07:00
2021-08-17 15:20:05 -07:00
2021-10-28 11:51:39 -04:00
2022-04-08 17:34:16 +01:00
2021-10-29 14:41:05 -04:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2022-04-08 17:34:16 +01:00
2021-05-17 14:09:07 -07:00
2022-04-08 17:34:16 +01:00
2021-11-11 12:28:10 +00:00
2022-04-08 17:34:16 +01:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00
2022-04-08 17:34:16 +01:00
2021-10-28 19:29:09 -05:00
2022-04-08 17:34:16 +01:00
2022-03-25 14:31:52 +00:00
2022-04-08 17:34:16 +01:00
2021-10-28 11:51:39 -04:00
2022-04-08 17:34:16 +01:00
2022-04-04 08:12:44 -07:00
2021-10-28 19:29:13 -05:00
2021-12-01 11:43:41 -06:00
2022-04-08 17:34:16 +01:00
2022-03-30 17:50:08 -04:00
2021-11-11 12:28:16 +00:00
2021-10-01 14:43:58 -07:00
2021-05-17 14:09:07 -07:00
2021-10-05 10:59:59 -07:00
2022-04-08 17:34:16 +01:00
2022-05-03 09:14:29 -04:00
2022-03-31 13:42:42 -04:00
2021-05-17 14:09:07 -07:00
2022-05-20 10:58:09 -07:00
2022-05-03 09:14:29 -04:00
2022-03-30 09:52:49 +01:00
2022-04-08 17:34:16 +01:00
2021-10-01 14:43:58 -07:00
2021-05-17 14:09:07 -07:00
2021-09-10 14:56:49 -07:00
2022-04-08 17:34:16 +01:00
2021-05-19 12:56:16 -04:00
2021-05-19 12:56:16 -04:00
2022-06-01 12:46:22 -04:00
2022-04-08 17:34:16 +01:00
2021-10-28 19:29:09 -05:00
2022-04-08 17:34:16 +01:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00
2022-04-08 17:34:16 +01:00
2022-05-31 14:27:21 +01:00
2022-04-08 17:34:16 +01:00
2022-01-13 11:00:03 -06:00
2021-05-17 14:09:07 -07:00
2022-04-08 17:34:16 +01:00
2021-10-28 19:29:09 -05:00
2021-10-28 19:29:09 -05:00
2022-04-08 17:34:16 +01:00
2022-03-31 13:42:42 -04:00
2022-04-08 17:34:16 +01:00
2022-03-31 13:42:42 -04:00
2022-04-08 17:34:16 +01:00
2022-03-31 13:42:42 -04:00
2022-04-08 17:34:16 +01:00
2022-03-31 13:42:42 -04:00
2022-04-08 17:34:16 +01:00
2022-03-31 13:42:42 -04:00
2022-04-08 17:34:16 +01:00
2021-10-28 19:29:09 -05:00
2022-04-08 17:34:16 +01:00
2022-04-08 17:34:16 +01:00
2022-03-31 13:42:42 -04:00
2022-04-08 17:34:16 +01:00
2021-11-11 12:28:10 +00:00
2021-05-17 14:09:07 -07:00
2021-09-21 22:26:16 -05:00
2022-04-08 17:34:16 +01:00
2021-05-17 14:09:07 -07:00
2022-04-08 17:34:16 +01:00
2021-10-28 19:29:09 -05:00
2022-04-08 17:34:16 +01:00
2021-08-30 13:59:14 -07:00
2022-04-08 17:34:16 +01:00
2021-05-17 14:09:07 -07:00
2022-04-08 17:34:16 +01:00
2021-10-13 13:54:11 -07:00
2022-01-08 14:41:20 +11:00
2021-10-28 19:29:09 -05:00
2022-01-08 14:41:20 +11:00
2022-01-08 14:41:20 +11:00
2021-05-17 14:09:07 -07:00