Mholloway has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391066 )
Change subject: Update namespace output to { id, title } object ...................................................................... Update namespace output to { id, title } object Bug: T177431 Change-Id: I77c72cb2f27eeb8c5cabbdb3769b6395cb6a9586 --- M lib/mobile-util.js M spec.yaml 2 files changed, 15 insertions(+), 10 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/mobileapps refs/changes/66/391066/1 diff --git a/lib/mobile-util.js b/lib/mobile-util.js index 1ebe27f..2c3433b 100644 --- a/lib/mobile-util.js +++ b/lib/mobile-util.js @@ -261,8 +261,7 @@ type: 'standard', title: meta.normalizedtitle, displaytitle: meta.displaytitle, - namespace_id: meta.ns, - namespace_text: meta.nsText, + namespace: { id: meta.ns, text: meta.nsText }, titles: mUtil.buildTitleDictionary(title, meta), pageid: meta.id, thumbnail: meta.thumbnail, diff --git a/spec.yaml b/spec.yaml index a477d0c..839822c 100644 --- a/spec.yaml +++ b/spec.yaml @@ -679,8 +679,9 @@ type: standard title: /.+/ displaytitle: /.+/ - namespace_id: /.+/ - namespace_text: /.*/ + namespace: + id: /.+/ + text: /.*/ titles: canonical: /.+/ normalized: /.+/ @@ -876,12 +877,17 @@ displaytitle: type: string description: The page title how it should be shown to the user - namespace_id: - type: integer - description: the numeric ID for the page's namespace (https://www.mediawiki.org/wiki/Manual:Namespace) - namespace_text: - type: string - description: text name for the MediaWiki namespace + namespace:_id: + type: object + properties: + id: + type: integer + description: the numeric ID for the page's namespace (https://www.mediawiki.org/wiki/Manual:Namespace) + text: + type: string + description: text name for the MediaWiki namespace + required: [ id, text ] + additionalProperties: false titles: $ref: '#/definitions/titles_set' pageid: -- To view, visit https://gerrit.wikimedia.org/r/391066 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I77c72cb2f27eeb8c5cabbdb3769b6395cb6a9586 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/services/mobileapps Gerrit-Branch: master Gerrit-Owner: Mholloway <mhollo...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits