mod_rest: Add JSON mapping for XEP-0461: Message Replies
authorKim Alvefur <zash@zash.se>
Fri, 12 Aug 2022 17:13:58 +0200
changeset 4989 bade04ef0a22
parent 4988 fc6a618bfe4e
child 4990 3bcefa9cf1ca
mod_rest: Add JSON mapping for XEP-0461: Message Replies
mod_rest/res/schema-xmpp.json
--- a/mod_rest/res/schema-xmpp.json	Thu Aug 11 20:04:13 2022 +0200
+++ b/mod_rest/res/schema-xmpp.json	Fri Aug 12 17:13:58 2022 +0200
@@ -942,6 +942,29 @@
                   "x_single_attribute" : "id"
                }
             },
+            "reply" : {
+               "description" : "Reference a message being replied to",
+               "properties" : {
+                  "id" : {
+                     "type" : "string",
+                     "xml" : {
+                        "attribute" : true
+                     }
+                  },
+                  "to" : {
+                     "type" : "string",
+                     "xml" : {
+                        "attribute" : true
+                     }
+                  }
+               },
+               "title" : "XEP-0461: Message Replies",
+               "type" : "object",
+               "xml" : {
+                  "name" : "reply",
+                  "namespace" : "urn:xmpp:reply:0"
+               }
+            },
             "rsm" : {
                "$ref" : "#/_common/rsm"
             },