opentofu/internal/command/jsonstate
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
..
doc.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
state_test.go json-output: Add output type to JSON format 2022-04-27 13:30:15 -04:00
state.go json-output: Add output type to JSON format 2022-04-27 13:30:15 -04:00