File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,7 @@ export const buildRestOperations: OperationsBuilder<OpenAPIV3.Document> = async
5555    debugCtx , 
5656  ) 
5757
58-   const  {  paths }  =  effectiveDocument 
59-   const  {  servers }  =  document . data 
58+   const  {  paths,  servers }  =  effectiveDocument 
6059
6160  const  operations : TYPE . VersionRestOperation [ ]  =  [ ] 
6261  if  ( ! paths )  {  return  [ ]  } 
Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ export const getOperationBasePath = (servers?: OpenAPIV3.ServerObject[]): string
2727  try  { 
2828    const  [ firstServer ]  =  servers 
2929    let  serverUrl  =  firstServer . url 
30+     if ( ! serverUrl )  { 
31+       return  '' 
32+     } 
33+ 
3034    const  {  variables =  { }  }  =  firstServer 
3135
3236    for  ( const  param  of  Object . keys ( variables ) )  { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments