Re: [Wikidata-tech] API JSON format for warnings

2015-09-09 Thread Adrian Heine
Hi Markus, for reference, our error message parsing happens in WikibaseJavaScriptApi: https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FWikibaseJavaScriptApi/24eb30d9cbf7fc2e3b83afd9cc651e72f7f6157f/src%2FRepoApiError.js#L85 This is only used for parsing errors returned by Wikibase API modul

Re: [Wikidata-tech] API JSON format for warnings

2015-09-01 Thread Markus Krötzsch
On 01.09.2015 16:57, Thiemo Mättig wrote: Hi, > I now identified another format for API warnings [...] from action "watch" I'm not absolutely sure, but I think this is not really an other format. The "warnings" field contains a list of modules. For each module you can either have a list of "me

Re: [Wikidata-tech] API JSON format for warnings

2015-09-01 Thread Thiemo Mättig
Hi, > I now identified another format for API warnings [...] from action "watch" I'm not absolutely sure, but I think this is not really an other format. The "warnings" field contains a list of modules. For each module you can either have a list of "messages", or a plain string. In the later case

Re: [Wikidata-tech] API JSON format for warnings

2015-09-01 Thread Tom Morris
On Tue, Sep 1, 2015 at 7:45 AM, Markus Krötzsch < mar...@semantic-mediawiki.org> wrote: > I now identified another format for API warnings. Obviously such variability in error reporting is going to cause consumers of the API aggravation. Perhaps a single, consistent reporting style could be dev

Re: [Wikidata-tech] API JSON format for warnings

2015-09-01 Thread Markus Krötzsch
I now identified another format for API warnings. For example, I got the following from action "watch": "warnings": { "watch": { "*": "The title parameter has been deprecated." } } For comparison, here is again what I got from wbeditentity: "warnings" : {"wbed

Re: [Wikidata-tech] API JSON format for warnings

2015-08-30 Thread Markus Krötzsch
A partial answer would also be helpful (maybe some of my questions are more tricky than others). Thanks, Markus On 28.08.2015 10:41, Markus Krötzsch wrote: Hi, I am wondering how errors and warnings are reported through the API, and which errors and warnings are possible. There is some d

[Wikidata-tech] API JSON format for warnings

2015-08-28 Thread Markus Krötzsch
Hi, I am wondering how errors and warnings are reported through the API, and which errors and warnings are possible. There is some documentation on Wikidata errors [1], but I could not find documentation on how the warning messages are communicated in JSON. I have seen structures like this: