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({
114114 }
115115
116116 for ( const harRequestHeader of harRequest . headers ) {
117- if ( harRequestHeader . name === bundledSpec . components . securitySchemes . appId . name ) {
117+ if ( harRequestHeader . name === bundledSpec . components . securitySchemes . appId ? .name ) {
118118 harRequestHeader . value = 'ALGOLIA_APPLICATION_ID' ;
119119 }
120120
121- if ( harRequestHeader . name === bundledSpec . components . securitySchemes . apiKey . name ) {
121+ if ( harRequestHeader . name === bundledSpec . components . securitySchemes . apiKey ? .name ) {
122122 harRequestHeader . value = 'ALGOLIA_API_KEY' ;
123123 }
124124 }
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export type Spec = {
4646 paths : Path ;
4747 components : {
4848 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 > } > ;
5050 } ;
5151} ;
5252
You can’t perform that action at this time.
0 commit comments