knuckleswtf/scribe

Error @queryParam data type

wiklaMI opened this issue · 0 comments

Scribe version

4.37

PHP version

8.2

Framework

Laravel

Framework version

10.48

Scribe config

title => "...."
base_url => "...."
try_it_out.base_url => "....."
auth.enabled => true
auth.default => true
strategies.metadata => removed Knuckles\Scribe\Extracting\Strategies\Metadata\GetFromMetadataAttributes
strategies.urlParameters => added Knuckles\Scribe\Extracting\Strategies\UrlParameters\GetFromLumenAPI: removed Knuckles\Scribe\Extracting\Strategies\UrlParameters\GetFromUrlParamAttribute
strategies.queryParameters => removed Knuckles\Scribe\Extracting\Strategies\QueryParameters\GetFromQueryParamAttribute
strategies.headers => added Knuckles\Scribe\Extracting\Strategies\Headers\GetFromRouteRules: removed Knuckles\Scribe\Extracting\Strategies\Headers\GetFromHeaderAttribute, [
    'override',
    [
        'Content-Type' => 'application/json',
        'Accept' => 'application/json',
    ],
]
strategies.bodyParameters => removed Knuckles\Scribe\Extracting\Strategies\BodyParameters\GetFromBodyParamAttribute
strategies.responses => added Knuckles\Scribe\Extracting\Strategies\Responses\ResponseCalls: removed Knuckles\Scribe\Extracting\Strategies\Responses\UseResponseAttributes, [
    'Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls',
    [
        'only' => [
            'GET *',
        ],
        'config' => [
            'app.debug' => false,
        ],
    ],
]
strategies.responseFields => removed Knuckles\Scribe\Extracting\Strategies\ResponseFields\GetFromResponseFieldAttribute

What happened?

I got an error when generating scribe

php artisan scribe:generate
ⓘ Processing route: [GET] api/clients

   Spatie\DataTransferObject\DataTransferObjectError 

     28▕         string $class,

  1   C:\laragon\www\.....\vendor\spatie\data-transfer-object\src\DataTransferObject.php:85
      Spatie\DataTransferObject\DataTransferObjectError::invalidTypes()

  2   C:\laragon\www\......\vendor\knuckleswtf\scribe\camel\Extraction\Parameter.php:21
      Spatie\DataTransferObject\DataTransferObject::__construct([])

even though in my code. I have entered the parameters according to the documentation. and the type for my example is also correct.

Docs