terraform-plugin-sdk
terraform-plugin-sdk copied to clipboard
Pass requiredwith validation if defaultfunc present
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