Page MenuHomePhabricator

Exclude link objects from wikimedia-paths-parameter-example-exists
Closed, ResolvedPublic3 Estimated Story Points

Description

Discovered while working on T419576

Linting the OAD example currently raises a wikimedia-paths-parameter-example-exists warning in two locations in the description:

  • paths ➤ /customer/getIdByEmail ➤ get ➤ responses ➤ 200 ➤ links ➤ Customer ➤ parameters ➤ id
  • paths ➤ /customer/verifyCustomer ➤ put ➤ responses ➤ 200 ➤ links ➤ Customer ➤ parameters ➤ id

The warning recommends that we add an example to the parameter. However, the Link object doesn't support examples for values in the parameters field. That field is for parameters that serve a different purpose, don't follow the structure of the Parameter object, and will never contain an example.

Proposed solution: exclude link objects (defined under links in the response and components objects) from this rule.

Details

Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
wikimedia-paths-parameter-example-exists: Exclude Link Object parameters from validationrepos/ci-tools/wikimedia-spectral-ruleset!6milazgfeat/T425920main
Customize query in GitLab

Event Timeline

KBach updated the task description. (Show Details)
KineticPelagic triaged this task as Medium priority.EditedMay 12 2026, 12:45 AM
KineticPelagic subscribed.

As part of my Clinic Duty rotation, I am moving this task to the "To Refine" column of our MWI workboard and assigning "Medium" priority because:

  • An internal MediaWiki team member identified the issue.
  • This task is a subtask of an Open, Medium, committed task , which is currently in the Code Review column of our current Sprint 33. I had a temptation to move this subtask into Sprint 33. Will let our current team member working on the parent task guide.
  • Without addressing this task, the warning recommends developers to do something that we do not actually expect them to do.
  • The task description has a proposed solution. I am not 100% clear if we are ready to proceed with this proposal and/or we want the person who works on the ticket to do an amount of discovery before implementing a solution.
  • There's already a rule in the underlying ruleset and we should just cancel it.
  • Sometimes the harder thing is how to make the rule recognise the right structure.
  • During estimation we should give ourselves some leeway
HCoplin-WMF set the point value for this task to 3.May 14 2026, 3:30 PM

milazg opened https://gitlab.wikimedia.org/repos/ci-tools/wikimedia-spectral-ruleset/-/merge_requests/6

wikimedia-paths-parameter-example-exists: Exclude Link Object parameters from validation

aghirelli merged https://gitlab.wikimedia.org/repos/ci-tools/wikimedia-spectral-ruleset/-/merge_requests/6

wikimedia-paths-parameter-example-exists: Exclude Link Object parameters from validation