Skip to content

Commit e4b4b8e

Browse files
committed
cond
1 parent 98be32e commit e4b4b8e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/specs/format.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ export async function bundleSpecsForDoc(bundledPath: string, clientName: string)
9898
throw new Error(`Could not find a the correct HAR request for ${method} ${pathKey}`);
9999
}
100100

101+
if (!harRequest?.headers) {
102+
break;
103+
}
104+
101105
for (const harRequestHeader of harRequest.headers) {
102106
if (harRequestHeader.name === bundledSpec.components.securitySchemes.appId?.name) {
103107
harRequestHeader.value = 'ALGOLIA_APPLICATION_ID';

0 commit comments

Comments
 (0)