Page MenuHomePhabricator

🚫 Replace `invalid-site-id` errors with generic `invalid-value` error
Closed, ResolvedPublic

Description

The new error should follow this format:

"code": "invalid-value",
"message": "Invalid value at '{json-pointer}'",
"context": { 
  "path": "{json-pointer}"
}

Note: remember to check if the OAS needs updating as well.

Event Timeline

Change #1052418 had a related patch set uploaded (by Muhammad Jaziraly; author: Muhammad Jaziraly):

[mediawiki/extensions/Wikibase@master] REST: Replace `invalid-site-id` with `invalid-value`

https://gerrit.wikimedia.org/r/1052418

Change #1052418 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Replace `invalid-site-id` with `invalid-value`

https://gerrit.wikimedia.org/r/1052418