opentofu/internal/command/jsonplan
Alisdair McDiarmid 12c8f9498c json-output: Add output type to JSON format
Previously the supported JSON plan and state formats included only
serialized output values, which was a lossy serialization of the
Terraform type system. This commit adds a type field in the usual cty
JSON format, which allows reconstitution of the original value.

For example, previously a list(string) and a set(string) containing the
same values were indistinguishable. This change serializes these as
follows:

{
  "value": ["a","b","c"],
  "type": ["list","string"]
}

and:

{
  "value": ["a","b","c"],
  "type": ["set","string"]
}
2022-04-27 13:30:15 -04:00
..
condition.go core: Store condition block results in plan 2022-04-04 15:36:29 -04:00
doc.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
module.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
plan_test.go jsonplan: Improve performance for deep objects 2022-02-18 17:00:18 -05:00
plan.go json-output: Add output type to JSON format 2022-04-27 13:30:15 -04:00
resource.go json-output: Previous address for resource changes 2021-09-20 15:25:23 -04:00
values_test.go json-output: Add output type to JSON format 2022-04-27 13:30:15 -04:00
values.go json-output: Add output type to JSON format 2022-04-27 13:30:15 -04:00