HomePhabricator

Output 'primary' as a boolean if formatversion=2

Description

Output 'primary' as a boolean if formatversion=2

Adds the field as a true boolean in all cases, rather than conditionally
as an empty string if the coordinates are primary for the article.

These are automatically converted back to "version 1" output for clients
requesting that JSON version, per [1].

[1] https://www.mediawiki.org/wiki/API:JSON_version_2#API_module_implementers:_ensuring_backwards_compatibility

Bug: T177428
Change-Id: Ia2e81f8aa060a69095a8e850569cc741c791973a

Details

Provenance
MhollowayAuthored on Feb 20 2018, 8:15 PM
Parents
rEGDAa570d26541df: build: Updating mediawiki/minus-x to 0.3.1
Branches
Unknown
Tags
Unknown
References
refs/changes/98/412998/1
ChangeId
Ia2e81f8aa060a69095a8e850569cc741c791973a