mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
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. |
||
---|---|---|
.. | ||
coerce_value_test.go | ||
coerce_value.go | ||
decoder_spec_test.go | ||
decoder_spec.go | ||
doc.go | ||
empty_value_test.go | ||
empty_value.go | ||
implied_type_test.go | ||
implied_type.go | ||
internal_validate_test.go | ||
internal_validate.go | ||
marks_test.go | ||
marks.go | ||
nestingmode_string.go | ||
none_required.go | ||
path_test.go | ||
path.go | ||
schema.go | ||
validate_traversal_test.go | ||
validate_traversal.go |