Skip to content
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

helper/schema: Additional validation for schema attribute references #407

Merged

Conversation

bflad
Copy link
Contributor

@bflad bflad commented Apr 24, 2020

Rebased #365
Reference: #71

Builds on testing from #364 (targeting v1). This PR currently targets v2.

bflad added 4 commits April 23, 2020 20:31
…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.
Copy link
Contributor

@appilon appilon left a comment

Choose a reason for hiding this comment

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

@bflad Can the fix be backported to V1 so those TODOs can be switched to Err: true ? I don't see it as a breaking change but rather a bugfix?

@bflad
Copy link
Contributor Author

bflad commented Apr 28, 2020

@appilon sure thing, I'll submit another PR after rebasing this one so the difference is super easy to replicate. 👍

@bflad
Copy link
Contributor Author

bflad commented Apr 28, 2020

v1-maint pull request with cherry-picked commits 👍 #416

@appilon appilon merged commit 7952a20 into hashicorp:master Apr 28, 2020
bflad added a commit to bflad/terraform-plugin-sdk that referenced this pull request Apr 29, 2020
…OneOf/ExactlyOneOf

Reference: hashicorp#407
Reference: hashicorp#416

Includes TODO items for logic that needs adjustment to work as expected. `AtLeastOneOf` and `ExactlyOneOf` at the attribute level should not only allow self-reference, but also require it.
bflad added a commit to bflad/terraform-plugin-sdk that referenced this pull request Apr 29, 2020
bflad added a commit to bflad/terraform-plugin-sdk that referenced this pull request Apr 30, 2020
…OneOf/ExactlyOneOf

Reference: hashicorp#407
Reference: hashicorp#416

Includes TODO items for logic that needs adjustment to work as expected. `AtLeastOneOf` and `ExactlyOneOf` at the attribute level should not only allow self-reference, but also require it.
bflad added a commit to bflad/terraform-plugin-sdk that referenced this pull request Apr 30, 2020
appilon pushed a commit that referenced this pull request Apr 30, 2020
…OneOf/ExactlyOneOf

Reference: #407
Reference: #416

Includes TODO items for logic that needs adjustment to work as expected. `AtLeastOneOf` and `ExactlyOneOf` at the attribute level should not only allow self-reference, but also require it.
appilon pushed a commit that referenced this pull request Apr 30, 2020
…ExactlyOneOf in InternalValidate

Reference: #407
Reference: #416
appilon pushed a commit that referenced this pull request Apr 30, 2020
…OneOf/ExactlyOneOf

Reference: #407
Reference: #416

Includes TODO items for logic that needs adjustment to work as expected. `AtLeastOneOf` and `ExactlyOneOf` at the attribute level should not only allow self-reference, but also require it.
appilon pushed a commit that referenced this pull request Apr 30, 2020
…ExactlyOneOf in InternalValidate

Reference: #407
Reference: #416
@ghost
Copy link

ghost commented May 29, 2020

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.

@ghost ghost locked and limited conversation to collaborators May 29, 2020
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