mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 04:20:11 +00:00
fix: render empty scalar nodes
This commit is contained in:
@@ -67,6 +67,15 @@ func CreateIntNode(str string) *yaml.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func CreateEmptyScalarNode() *yaml.Node {
|
||||
n := &yaml.Node{
|
||||
Kind: yaml.ScalarNode,
|
||||
Tag: "!!null",
|
||||
Value: "",
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func CreateFloatNode(str string) *yaml.Node {
|
||||
n := &yaml.Node{
|
||||
Kind: yaml.ScalarNode,
|
||||
|
||||
Reference in New Issue
Block a user