mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 20:47:44 +00:00
Fixed a small couple of glitches that appeared during load testing.
This commit is contained in:
@@ -106,15 +106,17 @@ func (sr *SecurityRequirement) Build(root *yaml.Node, idx *index.SpecIndex) erro
|
||||
dat = keyValues
|
||||
}
|
||||
}
|
||||
res[low.KeyReference[string]{
|
||||
Value: currSec.Value,
|
||||
KeyNode: currSec,
|
||||
}] = dat
|
||||
requirements = append(requirements,
|
||||
low.ValueReference[map[low.KeyReference[string]][]low.ValueReference[string]]{
|
||||
Value: res,
|
||||
ValueNode: n,
|
||||
})
|
||||
if currSec != nil {
|
||||
res[low.KeyReference[string]{
|
||||
Value: currSec.Value,
|
||||
KeyNode: currSec,
|
||||
}] = dat
|
||||
requirements = append(requirements,
|
||||
low.ValueReference[map[low.KeyReference[string]][]low.ValueReference[string]]{
|
||||
Value: res,
|
||||
ValueNode: n,
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
sr.ValueRequirements = requirements
|
||||
|
||||
Reference in New Issue
Block a user