Files
libopenapi/datamodel/low/reference.go
Dave Shanley eda834f79f Working on building out models
a recursive approach? or a dfs approach? not sure yet. still playing with ideas.
2022-07-29 09:44:37 -04:00

22 lines
303 B
Go

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