This package adds support for laravel-model-states to dedoc/scramble by providing an extension. After installing the extension, all possible states are added as possible values to the response body, like Scramble does with an enum.
Install the extention with composer via composer require jeffreyvanhees/scramble-model-states
Add the extenstion to config/scramble.php
:
<?php
return [
// ...
'extensions' => [
\JeffreyVanHees\ScrambleModelStates\ModelStateToSchema::class
],
];