File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ function migratePackageJson() {
265265  const  packageJson  =  readYaml ( 'package.json' ) ; 
266266  packageJson . dependencies  =  packageJson . dependencies  ||  { } ; 
267267  delete  packageJson . dependencies [ 'swagger-repo' ] ; 
268-   packageJson . dependencies [ '@redocly/openapi-cli' ]  =  '^0.8.0 ' ; 
268+   packageJson . dependencies [ '@redocly/openapi-cli' ]  =  '^1.0.0-beta.9 ' ; 
269269
270270  packageJson . scripts  =  packageJson . scripts  ||  { } ; 
271271
@@ -291,11 +291,11 @@ function migratePackageJson() {
291291  } 
292292
293293  if  ( packageJson . scripts . test . indexOf ( 'swagger-repo validate' )  >  - 1 )  { 
294-     packageJson . scripts . test  =  'openapi validate ' ; 
294+     packageJson . scripts . test  =  'openapi lint ' ; 
295295  }  else  { 
296296    console . log ( 
297297      chalk . yellow ( 
298-         `Warning: can't migrate "test" script. Use "openapi validate " to validate  your API definitions.` 
298+         `Warning: can't migrate "test" script. Use "openapi lint " to lint  your API definitions.` 
299299      ) 
300300    ) ; 
301301  } 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments