mod_rest: Add XEP-0461 to OpenAPI
authorKim Alvefur <zash@zash.se>
Sat, 31 Dec 2022 17:03:40 +0100
changeset 5129 cf4714946831
parent 5128 8d5b9245275d
child 5130 5784ff4f3b76
mod_rest: Add XEP-0461 to OpenAPI Gotta keep up with schema-xmpp.json
mod_rest/res/openapi.yaml
--- a/mod_rest/res/openapi.yaml	Sat Dec 31 17:02:36 2022 +0100
+++ b/mod_rest/res/openapi.yaml	Sat Dec 31 17:03:40 2022 +0100
@@ -324,6 +324,8 @@
           $ref: '#/components/schemas/stanza_ids'
         reference:
           $ref: '#/components/schemas/reference'
+        reply:
+          $ref: '#/components/schemas/reply'
         markable:
           $ref: '#/components/schemas/markable'
         displayed:
@@ -1138,6 +1140,23 @@
       - type
       - uri
 
+    reply:
+      title: 'XEP-0461: Message Replies'
+      description: Reference a message being replied to
+      type: object
+      xml:
+        name: reply
+        namespace: urn:xmpp:reply:0
+      properties:
+        to:
+          type: string
+          xml:
+            attribute: true
+        id:
+          type: string
+          xml:
+            attribute: true
+
     markable:
       type: boolean
       xml: