Merge pull request #20851 from hashicorp/doc-validatefunc-maps

Document that ValidateFunc works on maps.
This commit is contained in:
Alex Somesan 2019-04-17 20:45:15 +02:00 committed by GitHub
commit 275e0a53f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,7 +266,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.
// 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