mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 12:37:49 +00:00
fix: continued moving everything to orderedmaps plus cleaned up most the tests
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
|
||||
package utils
|
||||
|
||||
import "gopkg.in/yaml.v3"
|
||||
import (
|
||||
"gopkg.in/yaml.v3"
|
||||
)
|
||||
|
||||
func CreateRefNode(ref string) *yaml.Node {
|
||||
m := CreateEmptyMapNode()
|
||||
@@ -23,6 +25,13 @@ func CreateEmptyMapNode() *yaml.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func CreateYamlNode(a any) *yaml.Node {
|
||||
var n yaml.Node
|
||||
_ = n.Encode(a)
|
||||
|
||||
return &n
|
||||
}
|
||||
|
||||
func CreateEmptySequenceNode() *yaml.Node {
|
||||
n := &yaml.Node{
|
||||
Kind: yaml.SequenceNode,
|
||||
|
||||
Reference in New Issue
Block a user