mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 04:20:24 +00:00
Large refactor and addedGetAllChanges to each change
tons of updates, so many things.
This commit is contained in:
@@ -5,6 +5,15 @@ package utils
|
||||
|
||||
import "gopkg.in/yaml.v3"
|
||||
|
||||
func CreateRefNode(ref string) *yaml.Node {
|
||||
m := CreateEmptyMapNode()
|
||||
nodes := make([]*yaml.Node, 2)
|
||||
nodes[0] = CreateStringNode("$ref")
|
||||
nodes[1] = CreateStringNode(ref)
|
||||
m.Content = nodes
|
||||
return m
|
||||
}
|
||||
|
||||
func CreateEmptyMapNode() *yaml.Node {
|
||||
n := &yaml.Node{
|
||||
Kind: yaml.MappingNode,
|
||||
|
||||
Reference in New Issue
Block a user