getAnnotationsOfType(OA\Schema::class); foreach ($schemas as $schema) { if ($schema->items instanceof OA\Items) { $schema->type = 'array'; } } } }