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.
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.
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
REST: Replace 'item-data-invalid-field' errors with 'invalid-value' | mediawiki/extensions/Wikibase | master | +38 -100 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Ifrahkhanyaree_WMDE | T366181 🚫 [Generalised error] invalid-value in request body | |||
Resolved | Dima_Koushha_WMDE | T369039 🚫 Replace `item-data-invalid-field` errors with generic `invalid-value` error |
Change #1052798 had a related patch set uploaded (by Dima koushha; author: Dima koushha):
[mediawiki/extensions/Wikibase@master] REST: Replace 'item-data-invalid-field' errors with 'invalid-value'
Change #1052798 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] REST: Replace 'item-data-invalid-field' errors with 'invalid-value'