Fix limitations on Elem for TypeMap

This commit is contained in:
Paul Tyng 2019-03-18 14:15:25 -04:00 committed by GitHub
parent 3119cb039b
commit ec9450a262
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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