- {field} in the error message in the parent ticket description is the last part of the path
- InvalidFieldException will need a field and a value 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)
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T335067 Epic: Wikidata Query Service stabilization | |||
Resolved | Lydia_Pintscher | T314503 rollout of the new Wikibase REST API to Wikidata | |||
Resolved | Ifrahkhanyaree_WMDE | T316718 Errors in Wikibase REST API | |||
Resolved | Ollie.Shotton_WMDE | T324088 💥️ Improve error reporting for invalid statement data in REST API (missing field or invalid value) | |||
Resolved | Jakob_WMDE | T324592 💥️ Respond with statement-data-invalid-field error for invalid statement fields in PUT and POST endpoints |
Event Timeline
Change 866616 had a related patch set uploaded (by Jakob; author: Jakob):
[mediawiki/extensions/Wikibase@master] REST: Add field data to InvalidFieldException
Change 867139 had a related patch set uploaded (by Jakob; author: Jakob):
[mediawiki/extensions/Wikibase@master] REST: Report statement-data-invalid-field errors
Change 867528 had a related patch set uploaded (by Jakob; author: Jakob):
[mediawiki/extensions/Wikibase@master] REST: Improve invalid field error in PATCH result
Change 867567 had a related patch set uploaded (by Jakob; author: Jakob):
[mediawiki/extensions/Wikibase@master] REST: Improve invalid field errors, moving the patcher
Change 867603 had a related patch set uploaded (by Jakob; author: Jakob):
[mediawiki/extensions/Wikibase@master] REST: Improve invalid field errors, removing the patcher
Change 866616 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] REST: Add field data to InvalidFieldException
Change 867139 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] REST: Report statement-data-invalid-field errors