Tech debt: Replace 'validateAny' and 'validateIntegerInSlice' with upstream 'validation.Any' and 'validation.IntInSlice' #7906
Labels
good first issue
Call to action for new contributors looking for a place to start. Smaller or straightforward issues.
provider
Pertains to the provider itself, rather than any interaction with AWS.
technical-debt
Addresses areas of the codebase that need refactoring or redesign.
Community Note
After the merging of #7874 we can now replace
validateAny()
https://github.com/terraform-providers/terraform-provider-aws/blob/97596eefb71281379b3f80119556051bf3374d1a/aws/validators.go#L27-L41 withvalidation.Any()
https://github.com/terraform-providers/terraform-provider-aws/blob/97596eefb71281379b3f80119556051bf3374d1a/vendor/github.com/hashicorp/terraform/helper/validation/validation.go#L33-L47 andvalidateIntegerInSlice()
https://github.com/terraform-providers/terraform-provider-aws/blob/97596eefb71281379b3f80119556051bf3374d1a/aws/validators.go#L593-L608 withvalidators.IntInSlice()
https://github.com/terraform-providers/terraform-provider-aws/blob/97596eefb71281379b3f80119556051bf3374d1a/vendor/github.com/hashicorp/terraform/helper/validation/validation.go#L108-L125.Related:
The text was updated successfully, but these errors were encountered: