What happened?
Hi.
The generated response example looks like this:
While my real api output looks like this:
The output on my controller:
AnonymousResourceCollection::withoutWrapping();
return ModelResource::collection($response->json());
Scramble does not detect the withoutWrapping() for my ResourceCollection.
How to reproduce the bug
Return a Resource::collection() after using AnonymousResourceCollection::withoutWrapping() to remove the 'data' wrap.
Scramble still uses "data" as a wrapper in the response example.
Package Version
0.13.34
PHP Version
8.4.20
Laravel Version
11.45.1
Which operating systems does with happen with?
No response
Notes
No response
What happened?
Hi.
The generated response example looks like this:
While my real api output looks like this:
The output on my controller:
Scramble does not detect the
withoutWrapping()for my ResourceCollection.How to reproduce the bug
Return a
Resource::collection()after usingAnonymousResourceCollection::withoutWrapping()to remove the 'data' wrap.Scramble still uses "data" as a wrapper in the response example.
Package Version
0.13.34
PHP Version
8.4.20
Laravel Version
11.45.1
Which operating systems does with happen with?
No response
Notes
No response