Skip to content

Commit

Permalink
Change default JSON export to pretty print (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-r authored Oct 15, 2024
1 parent 0ae87c5 commit b5c03aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/Commands/ExportDocumentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function handle(Generator $generator): void
{
$config = Scramble::getGeneratorConfig($api = $this->option('api'));

$specification = json_encode($generator($config));
$specification = json_encode($generator($config), JSON_PRETTY_PRINT);

/** @var string $filename */
$filename = $this->option('path') ?? $config->get('export_path', 'api'.($api === 'default' ? '' : "-$api").'.json');
Expand Down

0 comments on commit b5c03aa

Please sign in to comment.