File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -246,11 +246,14 @@ public static Models.Data Prepare(
246246 } )
247247 . ToImmutableArray ( ) ;
248248
249- foreach ( var group in methods
250- . GroupBy ( x => x . Tag )
251- . Where ( x => ! x . AreKeysUnique ( y => y . CliAction ) ) )
249+ if ( settings . GenerateCli )
252250 {
253- Console . WriteLine ( $ "Found duplicate CLI action names in '{ group . Key . SingularizedName } ': { string . Join ( ", " , group . Select ( x => x . CliAction ) ) } ") ;
251+ foreach ( var group in methods
252+ . GroupBy ( x => x . Tag )
253+ . Where ( x => ! x . AreKeysUnique ( y => y . CliAction ) ) )
254+ {
255+ Console . WriteLine ( $ "Found duplicate CLI action names in '{ group . Key . SingularizedName } ': { string . Join ( ", " , group . Select ( x => x . CliAction ) ) } ") ;
256+ }
254257 }
255258
256259 var authorizations = openApiDocument . Security !
You can’t perform that action at this time.
0 commit comments