mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 12:37:49 +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:
@@ -17,7 +17,7 @@ func TestSchemaProxy_Build(t *testing.T) {
|
||||
var idxNode yaml.Node
|
||||
_ = yaml.Unmarshal([]byte(yml), &idxNode)
|
||||
|
||||
err := sch.Build(&idxNode, nil)
|
||||
err := sch.Build(idxNode.Content[0], nil)
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, "something", sch.Schema().Description.Value)
|
||||
assert.Empty(t, sch.GetSchemaReference())
|
||||
|
||||
Reference in New Issue
Block a user