fix(plugin): ToEinoSchemaParameterInfo nil panic (#832)
This commit is contained in:
parent
1dc00e4df8
commit
a4b11729a6
|
|
@ -255,6 +255,9 @@ func (op *Openapi3Operation) ToEinoSchemaParameterInfo(ctx context.Context) (map
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if paramInfo == nil {
|
||||
continue
|
||||
}
|
||||
|
||||
if _, ok := result[paramName]; ok {
|
||||
logs.CtxWarnf(ctx, "duplicate parameter name '%s'", paramName)
|
||||
Loading…
Reference in New Issue