Page MenuHomePhabricator

Make "wikibase-api-not-recognized-datatype" error message more informative
Open, Needs TriagePublic

Description

As an user of the API I want to get specific error messages in order to properly fix my code.

Problem:
The error message "wikibase-api-not-recognized-datatype": "A datatype was expected, but either missing or not recognized.", for an unrecognized datatype does not tell me:

  1. What the system thought was the value I was providing
  2. A comprehensive list of the valid values

Acceptance criteria:

  • The error message tells me which (wrong or missing) value I provided and which values it considers valid.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Addshore renamed this task from Make error message more informative to Make "wikibase-api-not-recognized-datatype" error message more informative.Jan 27 2020, 4:04 PM
Addshore moved this task from Incoming to Needs Tech Work on the Wikidata-Campsite board.
Addshore subscribed.

I think we need to add some more details to this ticket so we can figure out what we want to show in the cases that this error message i used.