-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow ConflictsWith, ExactlyOneOf, and AtLeastOneOf to work in Lists #470
Labels
enhancement
New feature or request
subsystem/types
Issues and feature requests related to the type system of Terraform and our shims around it.
terraform-plugin-framework
Resolved in terraform-plugin-framework
Comments
paddycarver
added
the
subsystem/types
Issues and feature requests related to the type system of Terraform and our shims around it.
label
Jan 6, 2021
Just to document them, other (potentially mutually exclusive) ideas that have floated around this space are:
|
5 tasks
5 tasks
5 tasks
This was referenced Mar 5, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
New feature or request
subsystem/types
Issues and feature requests related to the type system of Terraform and our shims around it.
terraform-plugin-framework
Resolved in terraform-plugin-framework
Use-cases
Currently
ConflictsWith
,ExactlyOneOf
orAtLeastOneOf
are set at the attribute level, which means we can't set it on a list of if we have a list of objects, and each object has a list of attributes that'sAtLeastOneOf
. We don't know the length of the list and there is no way to differentiate object[0] from object[1] with what is conflicting.Proposal
We need to move
ConflictsWith
,ExactlyOneOf
andAtLeastOneOf
to the resource level to be able to determine which child fields are conflicting.The text was updated successfully, but these errors were encountered: