scramble
scramble copied to clipboard
Modern Laravel OpenAPI (Swagger) documentation generator. No PHPDoc annotations required.
This allows overriding default extension responses, in case of multiple `shouldHandle` calls returning true. We have a different set of pagination properties than the Laravel default, which currently forces us...
According to the docs, Additional collection data will automatically be documented when adding additional data to a collection. ```php use Illuminate\Http\Resources\Json\AnonymousResourceCollection; use App\Models\TodoItem; use Illuminate\Pagination\LengthAwarePaginator; class TodoItemsController { public function...
Basic Controller that extends to another controllers, for example usage global pagination responses. Problem: When in extended Controller we use method from parent class to return response()->json(?) always returning string...
Hi guy! I deployed a site with Laravel Octane powered by FrankenPHP and everything works fine and fast! Today, I looked my API doc, and saw an error with `JsonResource`...
Cannot generate docs if controller parameter is a union type. In my project I have a union type for Report system, user can report a User, Comment or a Post....
WIP fixes #226, fixes #169, fixes #235, fixes #634 This one is another very complex PR, but it ~would allow creating playgrounds for Scramble by making rules evaluation optional and...
Laravel 10.x | Scramble 0.8.5 | PHP 8.3.x Error occurs when requesting `docs/api.json` and breaks the loading of the whole docs site: The `getClassDefinition` method has a return type of...
Hi, When running under octane this error happens and after I hit refresh 2 or 3 times it's gone. :/  
Hi - We use a custom Response Trait to organise all our responses. When using this, we get the following on our Docs: This, particular endpoint returns the following format:...
Hi, OpenAPI supports Links parameter - https://swagger.io/docs/specification/links/ How do I specify that with Scramble? Thanks