mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Merge pull request #20738 from hashicorp/paultyng-patch-1
Fix documented limitations on Elem for TypeMap
This commit is contained in:
commit
eb582744df
@ -167,7 +167,8 @@ type Schema struct {
|
|||||||
// The following fields are only set for a TypeList, TypeSet, or TypeMap.
|
// 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
|
// 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.
|
// *Resource. If it is *Schema, the element type is just a simple value.
|
||||||
// If it is *Resource, the element type is a complex structure,
|
// If it is *Resource, the element type is a complex structure,
|
||||||
// potentially with its own lifecycle.
|
// potentially with its own lifecycle.
|
||||||
|
Loading…
Reference in New Issue
Block a user