You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning: Attribute Deprecated
{DeprecationMessage field string}
This handling however, due to limitations in the protocol, only occurs for Required or Optional attributes when they have a configuration value (known or unknown in the case of the framework). There is currently no effect when the attribute is Computed-only (read-only). The framework already enables the deprecated boolean field available in the protocol, so if/when Terraform core does something with that protocol field in a future version, it'll have an effect on read-only attributes then.
Proposal
Update the Go documentation and website documentation to ensure it denotes this limitation. We could go further and begin failing unit testing for attributes with DeprecationMessage and only Computed via #113, however that feature can be treated separately, if desired.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Module version
Use-cases
Currently, the
tfsdk.Attribute
typeDeprecationMessage
field is a message that gets translated into a warning diagnostic during Terraform's validation phase:This handling however, due to limitations in the protocol, only occurs for
Required
orOptional
attributes when they have a configuration value (known or unknown in the case of the framework). There is currently no effect when the attribute isComputed
-only (read-only). The framework already enables thedeprecated
boolean field available in the protocol, so if/when Terraform core does something with that protocol field in a future version, it'll have an effect on read-only attributes then.Proposal
Update the Go documentation and website documentation to ensure it denotes this limitation. We could go further and begin failing unit testing for attributes with
DeprecationMessage
and onlyComputed
via #113, however that feature can be treated separately, if desired.References
The text was updated successfully, but these errors were encountered: