Skip to content

Commit

Permalink
Merge pull request #7 from koencaerels/development
Browse files Browse the repository at this point in the history
Merge development into master.
  • Loading branch information
koencaerels authored Jul 11, 2024
2 parents 8e043ab + cc117ff commit a165136
Show file tree
Hide file tree
Showing 3 changed files with 454 additions and 87 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class CreateApiDocumentation extends Command
// Constructor
// ——————————————————————————————————————————————————————————————————————————

public function __construct(private ApiDocGenerator $apiDocGenerator)
public function __construct(/* private ApiDocGenerator $apiDocGenerator */)
{
parent::__construct('openapi:gen');
}
Expand All @@ -26,12 +26,12 @@ public function __construct(private ApiDocGenerator $apiDocGenerator)

protected function execute(InputInterface $input, OutputInterface $output): int
{
$output->writeln('Start generating OpenAPI documentation');
$documentation = $this->apiDocGenerator->generate();
$json = json_encode($documentation, \JSON_PRETTY_PRINT);
$jsonPath = './frontends/member_module/src/api/client/schema.json';
file_put_contents($jsonPath, $json);
$output->writeln('Done generating OpenAPI documentation');
// $output->writeln('Start generating OpenAPI documentation');
// $documentation = $this->apiDocGenerator->generate();
// $json = json_encode($documentation, \JSON_PRETTY_PRINT);
// $jsonPath = './frontends/member_module/src/api/client/schema.json';
// file_put_contents($jsonPath, $json);
// $output->writeln('Done generating OpenAPI documentation');

return Command::SUCCESS;
}
Expand Down
Loading

0 comments on commit a165136

Please sign in to comment.