Page MenuHomePhabricator

๐Ÿ”‘ Replace `invalid-site-id` error with `invalid-key`
Closed, ResolvedPublic

Description

The new error should follow this format:

HTTP status code: 400
"code": invalid-key
"message": "Invalid key '{key}' in '{json_pointer_to_parent}'"
"context: { "path": "{json_pointer_to_parent}", "key": "{key}" }

Note:
1- remember to check if the OAS needs updating as well.
2- This error has been replaced with invalid-value (T369063)

Event Timeline

Restricted Application added a subscriber: Aklapper. ยท View Herald TranscriptJul 23 2024, 3:24 PM
Dima_Koushha_WMDE renamed this task from ๐Ÿ”‘ Replace `invalid-site-id` errors with `invalid-key` to ๐Ÿ”‘ Replace `invalid-site-id` error with `invalid-key`.Jul 23 2024, 3:31 PM
Dima_Koushha_WMDE updated the task description. (Show Details)

Change #1056480 had a related patch set uploaded (by Dima koushha; author: Dima koushha):

[mediawiki/extensions/Wikibase@master] REST: Create a new generalized `invalid-key` error

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

Change #1056480 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Create a new generalized `invalid-key` error

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