mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 20:47:49 +00:00
Smashing bugs in models by validating changes.
Who would have thought the what-changed tool would be the key to ensuring accuracy on the models.
This commit is contained in:
@@ -638,7 +638,7 @@ func TestExtractArray(t *testing.T) {
|
||||
var cNode yaml.Node
|
||||
_ = yaml.Unmarshal([]byte(yml), &cNode)
|
||||
|
||||
things, _, _, err := ExtractArray[*pizza]("things", &cNode, idx)
|
||||
things, _, _, err := ExtractArray[*pizza]("things", cNode.Content[0], idx)
|
||||
assert.NoError(t, err)
|
||||
assert.NotNil(t, things)
|
||||
assert.Equal(t, "one", things[0].Value.Description.Value)
|
||||
|
||||
Reference in New Issue
Block a user