terraform-plugin-sdk icon indicating copy to clipboard operation
terraform-plugin-sdk copied to clipboard

Pass requiredwith validation if defaultfunc present

Open matt-potter opened this issue 2 years ago • 1 comments

Schema validation fails on RequiredWith even when a DefaultFunc is specified. Added a check to return nil if a defaultfunc is provided. The correctness of the defaultfunc is checked as a first step in the main validate func, so I believe just checking for presence here is sufficient?

Related issues here

matt-potter avatar Feb 20 '23 12:02 matt-potter

CLA assistant check
All committers have signed the CLA.

hashicorp-cla avatar Feb 20 '23 12:02 hashicorp-cla