Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose new kind of origins #112

Merged
merged 5 commits into from
Apr 6, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
merge Targets as part of the dependent body schema merger
  • Loading branch information
dbanck committed Apr 4, 2022
commit 96aabd86bc0236836637dceedbb87e938556823a
4 changes: 4 additions & 0 deletions decoder/decoder.go
Original file line number Diff line number Diff line change
@@ -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.Targets != nil {
mergedSchema.Targets = depSchema.Targets.Copy()
}
}

return mergedSchema, nil