Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions Annotations/AnnotationGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) ? '</br>' : '') . $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.');
}

Expand Down
7 changes: 3 additions & 4 deletions Annotations/GlobalApiComponents.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading