Last modified: 2014-11-07 13:10:59 UTC
wbparsevalue returns an array of results, each possibly representing an error. The format looks like this: { "results": [ { "raw": "VALUE", "error": "ValueParsers\\ParseException", "error-info": "The provided id serialization \"VALUE\" is not valid", "expected-format": "entity-id", "messages": [ { "name": "wikibase-parse-error-entity-id", "parameters": [], "html": { "*": "The entity id is malformed." } } ] } ] } Convention would suggest the following format: { "results": [ { "raw": "VALUE", "error": { "code": "wikibase-parse-error" "info": "The provided id serialization \"VALUE\" is not valid" "messages": [ { "name": "wikibase-parse-error-entity-id", "parameters": [], "html": { "*": "The entity id is malformed." } } ] } } ] }