jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/389545 )

Change subject: Add summary 2.0 common titles object to swagger spec
......................................................................


Add summary 2.0 common titles object to swagger spec

Bug: T164291
Change-Id: I5deaf4d2cae818b1084600e161d8b8c38707a4e5
---
M spec.yaml
1 file changed, 34 insertions(+), 0 deletions(-)

Approvals:
  BearND: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/spec.yaml b/spec.yaml
index 766154a..cc3ced8 100644
--- a/spec.yaml
+++ b/spec.yaml
@@ -666,6 +666,12 @@
               type: standard
               title: /.+/
               displaytitle: /.+/
+              titles:
+                title: /.+/
+                normalized_title: /.+/
+                display_title: /.+/
+                namespace_id: /.+/
+                namespace_name: /.*/
               pageid: /.+/
               thumbnail:
                 source: /.+/
@@ -836,6 +842,8 @@
       displaytitle:
         type: string
         description: The page title how it should be shown to the user
+      titles:
+        $ref: '#/definitions/titles_set'
       pageid:
         type: integer
         description: The page ID
@@ -1173,3 +1181,29 @@
         type: array
         description: Buffer contents
     additionalProperties: false
+
+  titles_set:
+    type: object
+    properties:
+      title:
+        type: string
+        description: the DB key (non-prefixed)
+      normalized_title:
+        type: string
+        description: the normalized title 
(https://www.mediawiki.org/wiki/API:Query#Title_normalization)
+      display_title:
+        type: string
+        description: the title as it should be displayed to the user
+      namespace_id:
+        type: integer
+        description: the numeric ID for the page's namespace 
(https://www.mediawiki.org/wiki/Manual:Namespace)
+      namespace_name:
+        type: string
+        description: text name for the MediaWiki namespace
+    required:
+      - title
+      - normalized_title
+      - display_title
+      - namespace_id
+      - namespace_name
+    additionalProperties: false

-- 
To view, visit https://gerrit.wikimedia.org/r/389545
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5deaf4d2cae818b1084600e161d8b8c38707a4e5
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: Mholloway <[email protected]>
Gerrit-Reviewer: BearND <[email protected]>
Gerrit-Reviewer: Fjalapeno <[email protected]>
Gerrit-Reviewer: GWicke <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: Mhurd <[email protected]>
Gerrit-Reviewer: Mobrovac <[email protected]>
Gerrit-Reviewer: Ppchelko <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to