File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
respect-core/src/handlers Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @redocly/respect-core " : patch
3+ " @redocly/cli " : patch
4+ ---
5+
6+ Fixed ` generate-arazzo ` command to properly handle output file paths. The ` output-file ` parameter must have a value when provided.
Original file line number Diff line number Diff line change @@ -954,6 +954,7 @@ yargs
954954 alias : 'o' ,
955955 describe : 'Output File name.' ,
956956 type : 'string' ,
957+ requiresArg : true ,
957958 } ,
958959 } ) ;
959960 } ,
Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ export async function handleGenerate({ argv }: CommandArgs<GenerateArazzoFileOpt
2828 '\n' + blue ( `Arazzo description ${ yellow ( fileName ) } successfully generated.` ) + '\n'
2929 ) ;
3030 } catch ( _err ) {
31- exitWithError ( '\n' + '❌ Arazzo description generation failed.' ) ;
31+ exitWithError (
32+ '\n' +
33+ '❌ Failed to generate Arazzo description. Check the output file path you provided, or the OpenAPI file content.'
34+ ) ;
3235 }
3336}
You can’t perform that action at this time.
0 commit comments