mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 04:20:24 +00:00
Added tag model build out with tests.
Working through patterns and re-applying them as I go, cleaning things up as I cook.
This commit is contained in:
@@ -3,21 +3,21 @@ package low
|
||||
import "gopkg.in/yaml.v3"
|
||||
|
||||
type HasNode interface {
|
||||
GetNode() *yaml.Node
|
||||
GetNode() *yaml.Node
|
||||
}
|
||||
|
||||
type Buildable interface {
|
||||
Build(node *yaml.Node) error
|
||||
Build(node *yaml.Node) error
|
||||
}
|
||||
|
||||
type NodeReference[T any] struct {
|
||||
Value T
|
||||
ValueNode *yaml.Node
|
||||
KeyNode *yaml.Node
|
||||
Value T
|
||||
ValueNode *yaml.Node
|
||||
KeyNode *yaml.Node
|
||||
}
|
||||
|
||||
type ObjectReference struct {
|
||||
Value map[string]interface{}
|
||||
ValueNode *yaml.Node
|
||||
KeyNode *yaml.Node
|
||||
Value interface{}
|
||||
ValueNode *yaml.Node
|
||||
KeyNode *yaml.Node
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user