Page MenuHomePhabricator

💥️ Respond with statement-data-missing-field error for missing required statement fields in PUT and POST endpoints
Closed, ResolvedPublic

Description

  • {field} is the last part of the path
  • Exception will need a field parameter
  • StatementValidator will create a ValidationErrorfrom the Exception (exception type determines error code)
  • use case error responses will map the new ValidationError code to the corresponding response format (see parent task description)

Event Timeline

Silvan_WMDE renamed this task from 💥️ Respond with statement-data-missing-field error for missing required statement fields to 💥️ Respond with statement-data-missing-field error for missing required statement fields in PUT and POST endpoints.Dec 14 2022, 2:58 PM

Change 868649 had a related patch set uploaded (by Silvan Heintze; author: Silvan Heintze):

[mediawiki/extensions/Wikibase@master] REST: Report statement-data-missing-field errors

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

Change 868649 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Report statement-data-missing-field errors

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