Skip to content

Conversation

@stephybun
Copy link
Member

@stephybun stephybun commented Oct 1, 2025

Description

Semi-related to validation added in:

#1193
hashicorp/terraform-plugin-sdk#1513

Framework allows list results with identities containing all null values, meaning providers may inadvertently forget or incorrectly set identity data. This PR changes the validation performed to also check that the values of the list result's identity are not all null.

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

None

@stephybun stephybun requested a review from a team as a code owner October 1, 2025 13:15
Copy link
Contributor

@SBGoods SBGoods left a comment

Choose a reason for hiding this comment

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

LGTM!

@stephybun stephybun merged commit 8855023 into main Oct 7, 2025
40 checks passed
@stephybun stephybun deleted the b/list-result-identity-null-validation branch October 7, 2025 14:34
stephybun added a commit to hashicorp/web-unified-docs that referenced this pull request Oct 10, 2025
Currently this code example works without issues, but a recent
validation change in framework means that this will begin to return an
error since it isn't valid to return a list result with an identity
containing all null values.

hashicorp/terraform-plugin-framework#1230
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants