Skip to content

Commit

Permalink
Fix title and reference links of nested blocks/attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
zippolyte committed Apr 22, 2021
1 parent b7abf70 commit 6240bb7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion schemamd/render.go
Expand Up @@ -192,7 +192,9 @@ func writeBlockChildren(w io.Writer, parents []string, block *tfjson.SchemaBlock
}

for _, name := range sortedNames {
path := append(parents, name)
path := make([]string, len(parents), len(parents)+1)
copy(path, parents)
path = append(path, name)

if block, ok := block.NestedBlocks[name]; ok {
nt, err := writeBlockType(w, path, block)
Expand Down

0 comments on commit 6240bb7

Please sign in to comment.