-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Terraform CLI and Framework Versions
% terraform version
Terraform v1.9.5
on darwin_arm64% cat go.mod | rg terraform-plugin-framework
github.com/hashicorp/terraform-plugin-framework v1.13.0
github.com/hashicorp/terraform-plugin-framework-jsontypes v0.2.0
github.com/hashicorp/terraform-plugin-framework-timeouts v0.4.1
github.com/hashicorp/terraform-plugin-framework-timetypes v0.5.0
github.com/hashicorp/terraform-plugin-framework-validators v0.15.0Use Cases or Problem Statement
The AWS provider recently implemented a bug fix which included a custom set validator to check for null values. In our use case null values could not be used with the underlying AWS API, and therefore should be surfaced as errors as early as possible. A similar validator could be implemented for list types.
Similar to #231, I'm not sure if this use case is a common enough to warrant moving up into this repository but again thought I'd offer up our implementation in case.
Proposal
Add a new NoNullValues validator to the setvalidator and listvalidator packages.
I derived the name from the UniqueValues list validator, but am open to any suggestions.
Additional Information
Relates hashicorp/terraform-provider-aws#40076
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request