romalytvynenko
romalytvynenko
@SRWieZ looks like a bug to me! Will fix
@SRWieZ fixed the issue of resource being not properly wrapped when specified in `@body`. Also improved type inference a bit and now using `->response()->setStatusCode(201)` will be properly documented without any...
@shamil8124 you should use `@body` when using status code. ```php /** * @operationId bulkCreateTests */ public function bulkStore(TestRequest $request) { /** * @status 201 * @body AnonymousResourceCollection */ return (TestResource::collection($this->createTests($request)))->toResponse()->setStatusCode(201);...
@SRWieZ > Without any comment: still not wrapper into data Can you show the controller's code and the result?
@maxechendu which Scramble version are you using? Also please remove the `@response` annotation and try again
Hey @Eyadhamza Thanks for the reporting. It is very detailed and I really appreciate it. I sort of understood the issue, but I'm wondering where exactly you see the error?...
@Eighke what a great catch! Thanks, will fix.
@Eyadhamza does the issue persists on `v0.10.5`?
@Eyadhamza I can reproduce an `UnknownType` with a comment `Cannot get property [permissions] type on [App\Models\Role]`, but this should not result in an error preventing documentation from being generated. This...
@Eyadhamza fixed that `UnknownType` with a comment `Cannot get property [permissions] type on [App\Models\Role]` in `v0.10.6`. Feel free to create a new issue if generation fails.