Update src/api.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
b7bc67e444
commit
26307f26ad
@ -27,7 +27,7 @@ export interface GetToolsOptions {
|
||||
}
|
||||
|
||||
function isOpenApiDocument(spec: string | OpenAPIV3.Document): spec is OpenAPIV3.Document {
|
||||
return typeof spec === 'object' && 'openapi' in spec;
|
||||
return typeof spec === 'object' && spec !== null && 'openapi' in spec;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user