Skip to content

add support for attribute level deprecation messages#346

Merged
ansgarm merged 2 commits intomainfrom
attribute-deprecation-messages
Feb 26, 2026
Merged

add support for attribute level deprecation messages#346
ansgarm merged 2 commits intomainfrom
attribute-deprecation-messages

Conversation

@ansgarm
Copy link
Copy Markdown
Member

@ansgarm ansgarm commented Feb 10, 2026

@ansgarm ansgarm force-pushed the attribute-deprecation-messages branch 2 times, most recently from e69c7cb to 7a034ca Compare February 10, 2026 10:22
@ansgarm ansgarm marked this pull request as ready for review February 16, 2026 13:51
@ansgarm ansgarm requested a review from a team as a code owner February 16, 2026 13:51
@ansgarm ansgarm force-pushed the attribute-deprecation-messages branch from 444317a to 10c0cfc Compare February 16, 2026 13:51
Description: "test description",
DescriptionKind: tfprotov6.StringKindPlain,
Version: 1,
Deprecated: true,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a vague thought but what happens if deprecated is false but there is a deprecation message set anyway, the answer is nothing, right?

Copy link
Copy Markdown
Member Author

@ansgarm ansgarm Feb 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Terraform will raise an error:
https://github.com/hashicorp/terraform/blob/c8a05ab45b30a36395339727f7c2f2d3059da604/internal/configs/configschema/internal_validate.go#L33

That said, in providers you can only set the deprecation message anyway and if it exists the Deprecated field will be set to true. So we don't need to do anything further in providers. And I don't think we validate these things on the protocol level usually 🤔

rainkwan
rainkwan previously approved these changes Feb 17, 2026
Copy link
Copy Markdown
Contributor

@rainkwan rainkwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes all look to be logical 👍🏽 LGTM

Copy link
Copy Markdown
Contributor

@rainkwan rainkwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 LGTM

@ansgarm ansgarm merged commit 9bbea46 into main Feb 26, 2026
42 checks passed
@ansgarm ansgarm deleted the attribute-deprecation-messages branch February 26, 2026 08:36
@ansgarm ansgarm added this to the v0.22.0 milestone Feb 26, 2026
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants