mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 04:20:24 +00:00
Fixed a low level bug with locating nodes.
locating nodes was looking through two levels to locate something. This is not the correct behavior, after making the change - lots of tests needed to be updated to be correct in what they put into as a the root node.
This commit is contained in:
@@ -23,7 +23,7 @@ x-hack: code`
|
||||
_ = yaml.Unmarshal([]byte(yml), &cNode)
|
||||
|
||||
var lowExt lowbase.ExternalDoc
|
||||
_ = lowmodel.BuildModel(&cNode, &lowExt)
|
||||
_ = lowmodel.BuildModel(cNode.Content[0], &lowExt)
|
||||
|
||||
_ = lowExt.Build(cNode.Content[0], nil)
|
||||
|
||||
@@ -51,7 +51,7 @@ x-hack: code`
|
||||
|
||||
// build low-level ExternalDoc
|
||||
var lowExt lowbase.ExternalDoc
|
||||
_ = lowmodel.BuildModel(&node, &lowExt)
|
||||
_ = lowmodel.BuildModel(node.Content[0], &lowExt)
|
||||
|
||||
// build out low-level properties (like extensions)
|
||||
_ = lowExt.Build(node.Content[0], nil)
|
||||
|
||||
Reference in New Issue
Block a user