mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 20:47:44 +00:00
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.
This commit is contained in:
@@ -7,15 +7,17 @@ type HasNode interface {
|
||||
}
|
||||
|
||||
type Buildable interface {
|
||||
Build(node *yaml.Node)
|
||||
Build(node *yaml.Node) error
|
||||
}
|
||||
|
||||
type NodeReference[T comparable] struct {
|
||||
Value T
|
||||
Node *yaml.Node
|
||||
type NodeReference[T any] struct {
|
||||
Value T
|
||||
ValueNode *yaml.Node
|
||||
KeyNode *yaml.Node
|
||||
}
|
||||
|
||||
type ObjectReference struct {
|
||||
Value map[string]interface{}
|
||||
Node *yaml.Node
|
||||
Value map[string]interface{}
|
||||
ValueNode *yaml.Node
|
||||
KeyNode *yaml.Node
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user