Re-phrase docs to enumerate types which support ValidateFunc

This commit is contained in:
Alex Somesan 2019-04-17 18:58:58 +02:00 committed by GitHub
parent ef681e527d
commit 0395c3ac58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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