diff --git a/decoder/decoder.go b/decoder/decoder.go index 9a59641c..76c6aa63 100644 --- a/decoder/decoder.go +++ b/decoder/decoder.go @@ -69,6 +69,10 @@ func mergeBlockBodySchemas(block *hcl.Block, blockSchema *schema.BlockSchema) (* for _, tBody := range depSchema.TargetableAs { mergedSchema.TargetableAs = append(mergedSchema.TargetableAs, tBody) } + + if depSchema.LinksTo != nil { + mergedSchema.LinksTo = depSchema.LinksTo.Copy() + } } return mergedSchema, nil