Skip to content

Commit 6b7f787

Browse files
authored
forgot to clean up after myself :( (#11)
1 parent c72b8fb commit 6b7f787

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

validation/validators.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -497,21 +497,3 @@ func MutuallyInclusiveSibling(siblingAttr string) AttributeValidator {
497497

498498
return v
499499
}
500-
501-
func OneOfStringTest(values []string, caseSensitive bool) TestFunc {
502-
return func(ctx context.Context, req tfsdk.ValidateAttributeRequest, resp *tfsdk.ValidateAttributeResponse) {
503-
504-
}
505-
}
506-
507-
func OneOfString(values []string, caseSensitive bool) AttributeValidator {
508-
v := NewValidator(
509-
fmt.Sprintf(`Ensure attribute has a value from set ["%s"]`, strings.Join(values, `", "`)),
510-
fmt.Sprintf(`Ensure attribute has a value from set ["%s"]`, strings.Join(values, `", "`)),
511-
OneOfStringTest(values, caseSensitive),
512-
true,
513-
true,
514-
)
515-
516-
return v
517-
}

0 commit comments

Comments
 (0)