mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-08 12:37:49 +00:00
added null check for paramRef when scanning operation params.
this issue was discovered in https://github.com/daveshanley/vacuum/issues/240, this provides a resolution to the problem.
This commit is contained in:
@@ -302,9 +302,11 @@ func (index *SpecIndex) scanOperationParams(params []*yaml.Node, pathItemNode *y
|
||||
Path: path,
|
||||
})
|
||||
} else {
|
||||
if paramRef != nil {
|
||||
index.paramOpRefs[pathItemNode.Value][method][paramRefName] =
|
||||
append(index.paramOpRefs[pathItemNode.Value][method][paramRefName], paramRef)
|
||||
}
|
||||
}
|
||||
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user