Silvan_WMDE created this task. Silvan_WMDE added projects: Wikidata, Wikibase Product Platform (Sprint 2).
TASK DESCRIPTION **BDD** WHEN I request GET /entities/items/{item_id} with a text which is not an item ID THEN I get 400 HTTP response AND it contains a invalid-entity-id code and a message "Not a valid entity ID: {item_id}" AND a HTTP header Content-Language set to en **Task breakdown notes:** - create a Validator on the "use case level" that will check the item ID from the request and return a ValidatioResult object - if the ValdationResult has violations, an error result (with isSuccessful() == false) will be returned from the GetItem use case - the RouteHandler will create an error response (set http status, code, message) based on the GetItemResult TASK DETAIL https://phabricator.wikimedia.org/T303918 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Silvan_WMDE Cc: Aklapper, WMDE-leszek, Ollie.Shotton_WMDE, Silvan_WMDE, Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org