terraform/internal/configs
Kristin Laemmert 0d80a74539
configs/configschema: fix missing "computed" attributes from NestedObject's ImpliedType (#29172)
* configs/configschema: fix missing "computed" attributes from NestedObject's ImpliedType

listOptionalAttrsFromObject was not including "computed" attributes in the list of optional object attributes. This is now fixed. I've also added some tests and fixed some panics and otherwise bad behavior when bad input is given. One natable change is in ImpliedType, which was panicking on an invalid nesting mode. The comment expressly states that it will return a result even when the schema is inconsistent, so I removed the panic and instead return an empty object.
2021-07-15 13:00:07 -04:00
..
configload Refactoring of module source addresses and module installation 2021-06-03 08:50:34 -07:00
configschema configs/configschema: fix missing "computed" attributes from NestedObject's ImpliedType (#29172) 2021-07-15 13:00:07 -04:00
hcl2shim
testdata configs: Include "moved" blocks when merging multiple files into a module 2021-07-01 08:28:02 -07:00
backend.go
compat_shim.go
config.go configs: EntersNewPackage methods for descendant modules 2021-06-03 08:50:34 -07:00
config_build.go Refactoring of module source addresses and module installation 2021-06-03 08:50:34 -07:00
config_build_test.go Refactoring of module source addresses and module installation 2021-06-03 08:50:34 -07:00
config_test.go Refactoring of module source addresses and module installation 2021-06-03 08:50:34 -07:00
depends_on.go
doc.go
escaping_blocks_test.go
experiments.go configs: Include "moved" blocks when merging multiple files into a module 2021-07-01 08:28:02 -07:00
experiments_test.go
module.go configs: Include "moved" blocks when merging multiple files into a module 2021-07-01 08:28:02 -07:00
module_call.go configs: EntersNewPackage methods for descendant modules 2021-06-03 08:50:34 -07:00
module_call_test.go addrs: ModuleRegistryPackage for representing module registry packages 2021-06-03 08:50:34 -07:00
module_merge.go Refactoring of module source addresses and module installation 2021-06-03 08:50:34 -07:00
module_merge_body.go
module_merge_test.go Refactoring of module source addresses and module installation 2021-06-03 08:50:34 -07:00
module_test.go
moved.go configs: For Moved blocks, use addrs.MoveEndpoint instead of addrs.Target 2021-07-01 08:28:02 -07:00
moved_test.go configs: Include "moved" blocks when merging multiple files into a module 2021-07-01 08:28:02 -07:00
named_values.go
named_values_test.go
parser.go
parser_config.go configs: Include "moved" blocks when merging multiple files into a module 2021-07-01 08:28:02 -07:00
parser_config_dir.go
parser_config_dir_test.go configs: valid-modules test ignores experimental features warning 2021-07-01 08:28:02 -07:00
parser_config_test.go
parser_test.go Refactoring of module source addresses and module installation 2021-06-03 08:50:34 -07:00
parser_values.go
parser_values_test.go
provider.go
provider_meta.go
provider_requirements.go
provider_requirements_test.go
provider_test.go
provider_validation.go
provisioner.go
provisioneronfailure_string.go
provisionerwhen_string.go
resource.go
synth_body.go
synth_body_test.go
util.go
variable_type_hint.go
variabletypehint_string.go
version_constraint.go