-
Notifications
You must be signed in to change notification settings - Fork 11
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
Adding List element validation for ValuesAre #37
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd write here exactly the same as #36 (review), so I'm thinking: couldn't ValuesAre
be turned generic?
The logic to detect if it's a List
or a Set
wouldn't be much more than https://github.com/hashicorp/terraform-provider-tls/pull/215/files#diff-d9583d35f5c3545409ce81ec8b21c319965974c7cb1c613b8db35c30db085c73R127
What do you recon?
Following discussion with @detro we could consolidate the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 🚀
If there is some sort of shared implementation detail, I'd still recommend keeping a listvalidator
package ValuesAre
function for discoverability purposes.
CHANGELOG.md
Outdated
@@ -1,3 +1,8 @@ | |||
# 0.3.0 (unreleased) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file will be handled prior to release to prevent merge conflicts across PRs: https://github.com/hashicorp/terraform-plugin-framework-validators/blob/main/.github/CONTRIBUTING.md#releases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed changes from CHANGELOG.md
.
.changelog/11.txt
Outdated
@@ -0,0 +1,3 @@ | |||
```release-note:feature |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: typically these files are associated with the PR number, rather than the issue, just so its easy to handle PRs that close multiple issues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed 11.txt
=> 37.txt
.
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Closes #11