Addshore created this task.
Addshore added a project: Wikidata.
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION
  A request such as this on test wikidata
  
    
/w/api.php?action=wbcreateclaim&format=json&entity=Q42&snaktype=novalue&property=P999999
  
  Where the property does not exist, results in a miss leading error message.
  
    {
        "error": {
            "code": "invalid-snak",
            "info": "Invalid snak data.",
            "messages": [
                {
                    "name": "wikibase-api-invalid-snak",
                    "parameters": [],
                    "html": {
                        "*": "Invalid snak data."
                    }
                }
            ],
            "*": "See https://test.wikidata.org/w/api.php for API usage. 
Subscribe to the mediawiki-api-announce mailing list at 
<https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for 
notice of API deprecations and breaking changes."
        },
        "servedby": "mw1342"
    }
  
  The error should say something about the property not existing.

TASK DETAIL
  https://phabricator.wikimedia.org/T238409

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Addshore
Cc: Aklapper, Addshore, darthmon_wmde, DannyS712, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to