File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 66use Illuminate \Routing \Route ;
77use Illuminate \Support \Facades \Log ;
88use Spatie \LaravelData \Data ;
9+ use Spatie \LaravelData \Support \Wrapping \WrapExecutionType ;
910use stdClass ;
1011
1112class OpenApi extends Data
@@ -62,7 +63,10 @@ public static function fromRoutes(array $routes, Command $command): self
6263 );
6364 }
6465
65- public function toArray (): array
66+ /**
67+ * @return array<string,mixed>
68+ */
69+ public function transform (bool $ transformValues = true , WrapExecutionType $ wrapExecutionType = WrapExecutionType::Disabled): array
6670 {
6771 // Double call to make sure all schemas are resolved
6872 $ this ->resolveSchemas ();
@@ -77,7 +81,7 @@ public function toArray(): array
7781 ) : new stdClass (), ];
7882
7983 return array_merge (
80- parent ::toArray ( ),
84+ parent ::transform ( $ transformValues , $ wrapExecutionType ),
8185 $ paths ,
8286 [
8387 'components ' => [
You can’t perform that action at this time.
0 commit comments