Cleanup record encoding logic, add tests
This commit is contained in:
@@ -30,6 +30,7 @@ type (
|
||||
YamlDecoder struct{}
|
||||
documentContext struct {
|
||||
references map[string]string
|
||||
parentIdent envoyx.Identifiers
|
||||
}
|
||||
auxYamlDoc struct {
|
||||
nodes envoyx.NodeSet
|
||||
@@ -393,6 +394,9 @@ func (d *auxYamlDoc) unmarshal{{ .expIdent }}Node(dctx documentContext, n *yaml.
|
||||
return
|
||||
}
|
||||
|
||||
// Make parent identifiers available through the dctx
|
||||
dctx.parentIdent = ii
|
||||
|
||||
{{ if eq $cmpIdent "compose" }}
|
||||
// Handle global namespace reference which can be provided as the doc. context
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user