address comments

This commit is contained in:
Mengqi Yu
2021-06-07 14:50:01 -07:00
parent cabbea0d97
commit 294070b3ab
5 changed files with 135 additions and 9 deletions

View File

@@ -54,7 +54,7 @@ func (c *copier) VisitList(s walk.Sources, _ *openapi.ResourceSchema, _ walk.Lis
origin := originItems[i]
if dest.Value == origin.Value {
// We should do it recursively on each node in the list.
// We copy the comments recursively on each node in the list.
if err := CopyComments(yaml.NewRNode(dest), yaml.NewRNode(origin)); err != nil {
return nil, err
}