Skip to content

Commit

Permalink
Make asyncapi schema a parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferror committed Jan 7, 2024
1 parent 4cace05 commit 370ecba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SchemaGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public function __construct(
private Schema $schema,
private array $servers,
private InfoObject $infoObject,
private string $asyncApiVersion = '2.6.0'
) {
}

Expand All @@ -39,7 +40,7 @@ public function generate(): array
}

return [
'asyncapi' => '2.6.0',
'asyncapi' => $this->asyncApiVersion,
'info' => [
'title' => $this->infoObject->title,
'version' => $this->infoObject->version,
Expand Down

0 comments on commit 370ecba

Please sign in to comment.