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"
}This is about introducing additional code logic and a seperate error message.
In the API module the property parameter should be checked and the property should exist.
If the property does not exist then a new error message should be returned stating that fact.