opentofu/internal/command/testdata/show-json
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
..
basic-create json-output: Add output type to JSON format 2022-04-27 13:30:15 -04:00
basic-delete json-output: Add output type to JSON format 2022-04-27 13:30:15 -04:00
basic-update json-output: Add output type to JSON format 2022-04-27 13:30:15 -04:00
conditions json-output: Add output type to JSON format 2022-04-27 13:30:15 -04:00
drift jsonconfig: add implicitly created provider configs 2022-02-19 01:55:09 +09:00
module-depends-on jsonconfig: add implicitly created provider configs 2022-02-19 01:55:09 +09:00
modules json-output: Add output type to JSON format 2022-04-27 13:30:15 -04:00
moved jsonconfig: add implicitly created provider configs 2022-02-19 01:55:09 +09:00
moved-drift jsonconfig: add implicitly created provider configs 2022-02-19 01:55:09 +09:00
multi-resource-update json-output: Add output type to JSON format 2022-04-27 13:30:15 -04:00
nested-module-error Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
nested-modules jsonconfig: add implicitly created provider configs 2022-02-19 01:55:09 +09:00
provider-aliasing jsonconfig: Improve provider configuration output 2022-02-07 15:05:58 -05:00
provider-aliasing-conflict jsonconfig: fix provider mappings with same names 2022-02-19 00:44:48 +09:00
provider-aliasing-default jsonconfig: fix provider mappings with same names 2022-02-19 00:44:48 +09:00
provider-version json-output: Add output type to JSON format 2022-04-27 13:30:15 -04:00
provider-version-no-config json-output: Add output type to JSON format 2022-04-27 13:30:15 -04:00
requires-replace jsonconfig: add implicitly created provider configs 2022-02-19 01:55:09 +09:00
sensitive-values json-output: Add output type to JSON format 2022-04-27 13:30:15 -04:00