Skip to content

Commit

Permalink
using the same config for open api extender
Browse files Browse the repository at this point in the history
  • Loading branch information
romalytvynenko committed Jul 9, 2024
1 parent 6119cb4 commit dd6e958
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Scramble.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ public static function registerApi(string $name, array $config = []): GeneratorC
config: array_merge(config('scramble'), $config),
);

// By default, afterOpenApiGenerated is the same for all APIs.
$generatorConfig->afterOpenApiGenerated(Scramble::$openApiExtender);

return $generatorConfig;
}

Expand Down

0 comments on commit dd6e958

Please sign in to comment.