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: Argument is deprecated
{Deprecated field string}
This handling however, due to limitations in the protocol, only occurs for Required or Optional attributes when they have a known configuration value. There is currently no effect when the attribute is Computed-only (read-only). The SDK 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 Deprecated and only Computed via schema.InternalValidate(), 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.
SDK version
Use-cases
Currently, the
helper/schema.Schema
typeDeprecated
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 known configuration value. There is currently no effect when the attribute isComputed
-only (read-only). The SDK 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
Deprecated
and onlyComputed
viaschema.InternalValidate()
, however that feature can be treated separately, if desired.References
The text was updated successfully, but these errors were encountered: