Skip to content

Commit

Permalink
merge LinkTo as part of the dependent body schema merger
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanck committed Apr 1, 2022
1 parent 07b57b0 commit 77a594a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions decoder/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77a594a

Please sign in to comment.