File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -114,11 +114,11 @@ export async function transformBundle({
114
114
}
115
115
116
116
for ( const harRequestHeader of harRequest . headers ) {
117
- if ( harRequestHeader . name === bundledSpec . components . securitySchemes . appId . name ) {
117
+ if ( harRequestHeader . name === bundledSpec . components . securitySchemes . appId ? .name ) {
118
118
harRequestHeader . value = 'ALGOLIA_APPLICATION_ID' ;
119
119
}
120
120
121
- if ( harRequestHeader . name === bundledSpec . components . securitySchemes . apiKey . name ) {
121
+ if ( harRequestHeader . name === bundledSpec . components . securitySchemes . apiKey ? .name ) {
122
122
harRequestHeader . value = 'ALGOLIA_API_KEY' ;
123
123
}
124
124
}
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export type Spec = {
46
46
paths : Path ;
47
47
components : {
48
48
schemas : Record < string , any > ;
49
- securitySchemes : { appId : Record < string , any > ; apiKey : Record < string , any > } ;
49
+ securitySchemes : Partial < { appId ? : Record < string , any > ; apiKey ? : Record < string , any > } > ;
50
50
} ;
51
51
} ;
52
52
You can’t perform that action at this time.
0 commit comments