diff --git a/Annotations/AnnotationGenerator.php b/Annotations/AnnotationGenerator.php index b76ea2a..4401862 100644 --- a/Annotations/AnnotationGenerator.php +++ b/Annotations/AnnotationGenerator.php @@ -1239,17 +1239,7 @@ protected function determineResponses(array $rules, string $plugin, string $meth $successArray['schema'] = $responseSchema; } - $tsvExampleLink = 'TSV (N/A)'; - if (count($mediaTypes) > 2) { - $tsvExampleLink = "[TSV (Excel)]({$exampleUrls['tsv']})"; - } - $descriptionLinks = empty($exampleUrls) ? '' : "[XML]({$exampleUrls['xml']}), [JSON]({$exampleUrls['json']}), $tsvExampleLink"; - $descriptionLinks = !empty($descriptionLinks) ? 'Example links: ' . $descriptionLinks : $descriptionLinks; - - // Append the links to the description with a prefix linebreak. If there's no description, skip the break - $successArray['description'] .= (!empty($successArray['description']) && !empty($descriptionLinks) ? '
' : '') . $descriptionLinks; - - if (empty($successArray['ref']) && empty($descriptionLinks) && empty($successArray['schema'])) { + if (empty($successArray['ref']) && empty($successArray['schema'])) { $this->addMissingImportantDataWarning($method, 'return', 'Type could not be determined via comment block or example.'); } diff --git a/Annotations/GlobalApiComponents.php b/Annotations/GlobalApiComponents.php index 4841ece..8bf2d3a 100644 --- a/Annotations/GlobalApiComponents.php +++ b/Annotations/GlobalApiComponents.php @@ -34,10 +34,9 @@ * * @OA\SecurityScheme( * securityScheme="MatomoToken", - * type="apiKey", - * in="query", - * name="token_auth", - * description="Matomo API token passed as the 'token_auth' query parameter." + * type="http", + * scheme="bearer", + * description="Matomo API token passed in the Authorization header as a bearer token. For demo.matomo.cloud requests, use the anonymous token value: anonymous." * ) * * @OA\Server( diff --git a/CHANGELOG.md b/CHANGELOG.md index 595b416..be3e0d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Added support for string literal union types - Added API endpoint to retrieve static matomo swagger file - Added support for deactivated plugins +- Removed token auth support 5.0.1-b1 - 2026-02-16 - Added class and function level docs