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:
@@ -125,7 +125,7 @@ func Test_Schema(t *testing.T) {
|
||||
assert.NoError(t, mErr)
|
||||
|
||||
sch := Schema{}
|
||||
mbErr := low.BuildModel(&rootNode, &sch)
|
||||
mbErr := low.BuildModel(rootNode.Content[0], &sch)
|
||||
assert.NoError(t, mbErr)
|
||||
|
||||
schErr := sch.Build(rootNode.Content[0], nil)
|
||||
@@ -280,7 +280,7 @@ examples:
|
||||
assert.NoError(t, mErr)
|
||||
|
||||
sch := Schema{}
|
||||
mbErr := low.BuildModel(&rootNode, &sch)
|
||||
mbErr := low.BuildModel(rootNode.Content[0], &sch)
|
||||
assert.NoError(t, mbErr)
|
||||
|
||||
schErr := sch.Build(rootNode.Content[0], nil)
|
||||
|
||||
Reference in New Issue
Block a user