b82170e941
Our BlockList, BlockSet, and BlockMap specs all produce cty collection values, which require all elements to have a homogeneous type. If the nested spec contained an attribute of type cty.DynamicPseudoType, that would create the risk of each element having a different type, which would previously have caused decoding to panic. Now we either handle this during decode (BlockList, BlockSet) or forbid it outright (BlockMap) to prevent that crash. BlockMap could _potentially_ also handle this during decode, but that would require a more significant reorganization of its implementation than I want to take on right now, and decoding dynamically-typed values inside collections is an edge case anyway. |
||
---|---|---|
.. | ||
block_labels.go | ||
decode.go | ||
doc.go | ||
gob.go | ||
public_test.go | ||
public.go | ||
schema.go | ||
spec_test.go | ||
spec.go | ||
variables_test.go | ||
variables.go |