mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 12:37:49 +00:00
Completed adding v3 models (I think)
Going to start logic for building things out. attempting generic builder pattern first.
This commit is contained in:
@@ -6,12 +6,12 @@ type HasNode interface {
|
||||
GetNode() *yaml.Node
|
||||
}
|
||||
|
||||
type NodeReference[T comparable] interface {
|
||||
GetValue() T
|
||||
GetNode() *yaml.Node
|
||||
type NodeReference[T comparable] struct {
|
||||
Value T
|
||||
Node *yaml.Node
|
||||
}
|
||||
|
||||
type ObjectReference interface {
|
||||
GetValue() interface{}
|
||||
GetNode() *yaml.Node
|
||||
type ObjectReference struct {
|
||||
Value interface{}
|
||||
Node *yaml.Node
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user