Files
libopenapi/datamodel/low/reference.go
Dave Shanley 7535cf568c Working through the model builder
Shaping out the design as I go, what makes sence, what feels right, what do we need, how do we want to use it and how to we want to search it etc.
2022-07-30 15:27:21 -04:00

24 lines
379 B
Go

package low
import "gopkg.in/yaml.v3"
type HasNode interface {
GetNode() *yaml.Node
}
type Buildable interface {
Build(node *yaml.Node) error
}
type NodeReference[T any] struct {
Value T
ValueNode *yaml.Node
KeyNode *yaml.Node
}
type ObjectReference struct {
Value map[string]interface{}
ValueNode *yaml.Node
KeyNode *yaml.Node
}