mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-08 04:20:17 +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,8 +302,10 @@ func (index *SpecIndex) scanOperationParams(params []*yaml.Node, pathItemNode *y
|
|||||||
Path: path,
|
Path: path,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
index.paramOpRefs[pathItemNode.Value][method][paramRefName] =
|
if paramRef != nil {
|
||||||
append(index.paramOpRefs[pathItemNode.Value][method][paramRefName], paramRef)
|
index.paramOpRefs[pathItemNode.Value][method][paramRefName] =
|
||||||
|
append(index.paramOpRefs[pathItemNode.Value][method][paramRefName], paramRef)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user