mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 18:05:27 +00:00
fix openapi import nil deref (#5080)
This commit is contained in:
parent
465894df15
commit
ea3705eb64
@ -179,6 +179,10 @@ func generateRequestsFromOp(opts *generateReqOptions) error {
|
||||
for _, parameter := range reqParams {
|
||||
value := parameter.Value
|
||||
|
||||
if value.Schema == nil || value.Schema.Value == nil {
|
||||
continue
|
||||
}
|
||||
|
||||
// paramValue or default value to use
|
||||
var paramValue interface{}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user