opentofu/internal/configs/configschema
James Bardin af4f4540a9 configschema: do not expose optional attributes
Objects with optional attributes are only used for the decoding of
HCL, and those types should never be exposed elsewhere within
terraform.

Separate the external ImpliedType method from the cty.Type generated
internally for the decoder spec. This unfortunately causes our
ImpliedType method to return a different type than the
hcldec.ImpliedType function, but the former is only used within
terraform for concrete values, while the latter is used to decode
HCL. Renaming the ImpliedType methods could be done to further
differentiate them, but that does cause fairly large diff in the
codebase that does not seem worth the effort at this time.
2021-09-13 08:51:32 -04:00
..
coerce_value_test.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
coerce_value.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
decoder_spec_test.go configs/configschema: fix missing "computed" attributes from NestedObject's ImpliedType (#29172) 2021-07-15 13:00:07 -04:00
decoder_spec.go configschema: do not expose optional attributes 2021-09-13 08:51:32 -04:00
doc.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
empty_value.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
implied_type_test.go configschema: do not expose optional attributes 2021-09-13 08:51:32 -04:00
implied_type.go configschema: do not expose optional attributes 2021-09-13 08:51:32 -04:00
internal_validate_test.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
internal_validate.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
marks_test.go update to use typed sensitive marks 2021-06-25 12:49:07 -04:00
marks.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_test.go configs/configschema: extend block.AttributeByPath to descend into Objects (#29222) 2021-07-22 09:45:33 -04:00
path.go configs/configschema: extend block.AttributeByPath to descend into Objects (#29222) 2021-07-22 09:45:33 -04:00
schema.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
validate_traversal_test.go update test error for hclv2.10.1 2021-07-21 09:09:30 -04:00
validate_traversal.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00