Skip to content

Commit

Permalink
Add codegen support for entry lists in variants
Browse files Browse the repository at this point in the history
  • Loading branch information
kklimonda-cl committed Nov 21, 2024
1 parent 3fe7dd8 commit 5f07079
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/translate/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ func checkNestedSpecs(parent []string, spec *properties.Spec, nestedSpecs map[st
}
for _, param := range spec.OneOf {
updateNestedSpecs(append(parent, param.Name.CamelCase), param, nestedSpecs)
if len(param.Profiles) > 0 && param.Profiles[0].Type == "entry" && param.Items != nil && param.Items.Type == "entry" {
addNameAsParamForNestedSpec(append(parent, param.Name.CamelCase), nestedSpecs)
}
}
}

Expand Down

0 comments on commit 5f07079

Please sign in to comment.