From 0395c3ac5807c64a88a71c4bc413ad55c7060a60 Mon Sep 17 00:00:00 2001 From: Alex Somesan Date: Wed, 17 Apr 2019 18:58:58 +0200 Subject: [PATCH] Re-phrase docs to enumerate types which support ValidateFunc --- helper/schema/schema.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helper/schema/schema.go b/helper/schema/schema.go index 7ae381c63..0f6540997 100644 --- a/helper/schema/schema.go +++ b/helper/schema/schema.go @@ -279,8 +279,8 @@ type Schema struct { // guaranteed to be of the proper Schema type, and it can yield warnings or // errors based on inspection of that value. // - // ValidateFunc currently only works for primitive types and TypeList / TypeSet - // of primitive type elements. + // ValidateFunc is honored only when the schema's Type is set to TypeInt, + // TypeFloat, TypeString, TypeBool, or TypeMap. It is ignored for all other types. ValidateFunc SchemaValidateFunc // Sensitive ensures that the attribute's value does not get displayed in