matomo-org / matomo-org/plugin-ApiReference

FormAnalytics spec generation produces error

Open
#51 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
0
Forks
1
Avg merge
2d 16h
Merged PRs (30d)
5

Description

Error when generating spec files for FormAnalytics, which makes it appear to fail. Even when it's generated the spec correctly.

```
ERROR [2026-05-25 04:45:07] 429839 Multiple @Matomo\Dependencies\ApiReference\OA\Property() with the same property="key":
/var/www/html/plugins/ApiReference/tmp/annotations/FormAnalyticsGeneratedAnnotations.php on line 1842
/var/www/html/plugins/ApiReference/tmp/annotations/FormAnalyticsGeneratedAnnotations.php on line 1842
ERROR [2026-05-25 04:45:07] 429839 Multiple @Matomo\Dependencies\ApiReference\OA\Property() with the same property="key":
/var/www/html/plugins/ApiReference/tmp/annotations/FormAnalyticsGeneratedAnnotations.php on line 1842
/var/www/html/plugins/ApiReference/tmp/annotations/FormAnalyticsGeneratedAnnotations.php on line 1842
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce FormAnalytics spec generation and inspect the generated plugins/ApiReference/tmp/annotations/FormAnalyticsGeneratedAnnotations.php around line 1842, where duplicate Property entries for key are reported. Trace the generation input that produces those entries; done means the spec is generated correctly without the duplicate-property error.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.