terraform/internal/configs/configschema
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
..
coerce_value.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
coerce_value_test.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
decoder_spec.go configs/configschema: fix missing "computed" attributes from NestedObject's ImpliedType (#29172) 2021-07-15 13:00:07 -04:00
decoder_spec_test.go configs/configschema: fix missing "computed" attributes from NestedObject's ImpliedType (#29172) 2021-07-15 13:00:07 -04:00
doc.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
empty_value.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
empty_value_test.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
implied_type.go configs/configschema: fix missing "computed" attributes from NestedObject's ImpliedType (#29172) 2021-07-15 13:00:07 -04:00
implied_type_test.go configs/configschema: fix missing "computed" attributes from NestedObject's ImpliedType (#29172) 2021-07-15 13:00:07 -04:00
internal_validate.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
internal_validate_test.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
marks.go update to use typed sensitive marks 2021-06-25 12:49:07 -04:00
marks_test.go update to use typed sensitive marks 2021-06-25 12:49:07 -04:00
nestingmode_string.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
none_required.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
path.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
path_test.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
schema.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
validate_traversal.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
validate_traversal_test.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00