-
Notifications
You must be signed in to change notification settings - Fork 25
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
New Check: Avoid Invalid ConflictsWith Values #104
Labels
Milestone
Comments
bflad
added a commit
to bflad/terraform-plugin-sdk
that referenced
this issue
Mar 18, 2020
…onflictsWith and list index/map key syntax Reference: hashicorp#71 Reference: bflad/tfproviderlint#104 The `TestSchemaMap_InternalValidate` tests also include TODOs for potential schema validation improvements.
bflad
added a commit
to bflad/terraform-plugin-sdk
that referenced
this issue
Mar 18, 2020
…onflictsWith and list index/map key syntax Reference: hashicorp#71 Reference: bflad/tfproviderlint#104 The `TestSchemaMap_InternalValidate` tests also include TODOs for potential schema validation improvements.
bflad
added a commit
that referenced
this issue
Mar 19, 2020
bflad
added a commit
that referenced
this issue
Mar 19, 2020
bflad
added a commit
to bflad/terraform-plugin-sdk
that referenced
this issue
Mar 19, 2020
…onflictsWith and list index/map key syntax Reference: hashicorp#71 Reference: bflad/tfproviderlint#104 The `TestSchemaMap_InternalValidate` tests also include TODOs for potential schema validation improvements.
bflad
added a commit
to bflad/terraform-plugin-sdk
that referenced
this issue
Apr 24, 2020
…onflictsWith and list index/map key syntax Reference: hashicorp#71 Reference: bflad/tfproviderlint#104 The `TestSchemaMap_InternalValidate` tests also include TODOs for potential schema validation improvements.
appilon
pushed a commit
to hashicorp/terraform-plugin-sdk
that referenced
this issue
Apr 28, 2020
…onflictsWith and list index/map key syntax Reference: #71 Reference: bflad/tfproviderlint#104 The `TestSchemaMap_InternalValidate` tests also include TODOs for potential schema validation improvements.
appilon
pushed a commit
to hashicorp/terraform-plugin-sdk
that referenced
this issue
Apr 28, 2020
…onflictsWith and list index/map key syntax Reference: #71 Reference: bflad/tfproviderlint#104 The `TestSchemaMap_InternalValidate` tests also include TODOs for potential schema validation improvements.
Mikechoi78
added a commit
to Mikechoi78/tfproviderlint
that referenced
this issue
May 23, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Terraform Plugin SDK v1 performs separate validation of the attribute keys given to
helper/schema.Schema.ConflictsWith
versus the method used to perform the conflict logic during runtime. Differences in the logic leave ambiguity between the flatmap syntax accepted by the schema validation versus what attributes can actually exist during runtime and report the user interface error messaging. While any logic fixes will need to occur in the SDK, the linter can at least report always invalid index syntax for these strings, sinceConflictsWith
cannot properly work with map syntax (neither forTypeMap
attributes (properly fails schema validation) norTypeList
/TypeSet
configuration block attributes (never will show conflict)).Flagged Code
Passing Code
References
Amongst many:
The text was updated successfully, but these errors were encountered: