From 77a594aeee9abef9b67207325971a38a9fca490a Mon Sep 17 00:00:00 2001 From: Daniel Banck Date: Fri, 1 Apr 2022 17:34:31 +0200 Subject: [PATCH] merge LinkTo as part of the dependent body schema merger --- decoder/decoder.go | 4 ++++ 1 file changed, 4 insertions(+) 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