@@ -254,8 +254,12 @@ async function run(oaFile, options) {
254254 // Apply OpenAPI overlay actions
255255 if ( options . overlaySet ) {
256256 const resOverlay = await openapiFormat . openapiOverlay ( resObj , options ) ;
257- if ( resOverlay ?. resultData &&
258- ( resOverlay . resultData . unusedActions || resOverlay . resultData . appliedActions || resOverlay . resultData . totalActions ) ) {
257+ if (
258+ resOverlay ?. resultData &&
259+ ( resOverlay . resultData . unusedActions ||
260+ resOverlay . resultData . totalUsedActions ||
261+ resOverlay . resultData . totalActions )
262+ ) {
259263 cliLog . unusedActions = resOverlay . resultData . unusedActions || [ ] ;
260264 cliLog . totalUsedActions = resOverlay . resultData . totalUsedActions || 0 ;
261265 cliLog . totalUnusedActions = resOverlay . resultData . totalUnusedActions || 0 ;
@@ -358,7 +362,7 @@ async function run(oaFile, options) {
358362 }
359363
360364 // Show unused components
361- if ( options . overlaySet && ( cliLog ?. totalActions || cliLog ?. appliedActions || cliLog ?. unusedActions ) ) {
365+ if ( options . overlaySet && ( cliLog ?. totalActions || cliLog ?. totalUsedActions || cliLog ?. unusedActions ) ) {
362366 // Log summary of actions
363367 logOut ( `${ consoleLine } ` , options . verbose ) ; // LOG - horizontal rule
364368 logOut ( `OpenAPI Overlay actions summary:` , options . verbose ) ;
@@ -369,7 +373,9 @@ async function run(oaFile, options) {
369373 const cliOut = [ ] ;
370374 cliLog . unusedActions . forEach ( action => {
371375 const description = action . description || 'No description provided' ;
372- cliOut . push ( `- Target: ${ action . target } \n Type: ${ action . update ? 'update' : action . remove ? 'remove' : 'unknown' } ` ) ;
376+ cliOut . push (
377+ `- Target: ${ action . target } \n Type: ${ action . update ? 'update' : action . remove ? 'remove' : 'unknown' } `
378+ ) ;
373379 } ) ;
374380
375381 if ( cliLog . unusedActions . length > 0 ) {
0 commit comments