From ec9450a26277c59d5dfd7cd01eb1932e48bfcf01 Mon Sep 17 00:00:00 2001 From: Paul Tyng Date: Mon, 18 Mar 2019 14:15:25 -0400 Subject: [PATCH] Fix limitations on Elem for TypeMap --- helper/schema/schema.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helper/schema/schema.go b/helper/schema/schema.go index 90f517363..5fbf673a6 100644 --- a/helper/schema/schema.go +++ b/helper/schema/schema.go @@ -167,7 +167,8 @@ type Schema struct { // The following fields are only set for a TypeList, TypeSet, or TypeMap. // // Elem represents the element type. For a TypeMap, it must be a *Schema - // with a Type of TypeString, otherwise it may be either a *Schema or a + // with a Type that is one of the primitives: TypeString, TypeBool, + // TypeInt or TypeFloat. Otherwise it may be either a *Schema or a // *Resource. If it is *Schema, the element type is just a simple value. // If it is *Resource, the element type is a complex structure, // potentially with its own lifecycle.