diff --git a/src/Scramble.php b/src/Scramble.php index 2610ddd9..c7a1093a 100755 --- a/src/Scramble.php +++ b/src/Scramble.php @@ -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; }