API: Add ApiResult::META_KVP_MERGE
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 28 Aug 2015 15:10:20 +0000 (11:10 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Fri, 28 Aug 2015 15:10:20 +0000 (11:10 -0400)
commit0ec057e73c4fd5a6089c0e8474071fbdf3b0071b
tree48b755614b1181006686a1aa0a2e514cb28f2dc9
parentfcbf108445e14075f28ff057aed17047046e457b
API: Add ApiResult::META_KVP_MERGE

This allows for merging the KVP key into the value for the alternative
output format. Specifically,

 { "key": { "foo": "bar" } }

can now be turned into

 [{ "name": "key", "foo": "bar" }]

instead of

 [{ "name": "key", "value": { "foo": "bar" } }]

Change-Id: Ie1f9235893dbbcd2948c46e0356360b5635a3ddd
RELEASE-NOTES-1.26
includes/api/ApiResult.php
tests/phpunit/includes/api/ApiResultTest.php