Add key node to the Buildable interface

This commit is contained in:
Dmitry
2023-08-25 10:36:44 +02:00
committed by quobix
parent 2042152318
commit d185205ec9

View File

@@ -38,7 +38,7 @@ type IsReferenced interface {
//
// Used by generic functions when automatically building out structs based on yaml.Node inputs.
type Buildable[T any] interface {
Build(node *yaml.Node, idx *index.SpecIndex) error
Build(key, value *yaml.Node, idx *index.SpecIndex) error
*T
}