changeset 4985:bade04ef0a22

mod_rest: Add JSON mapping for XEP-0461: Message Replies
author Kim Alvefur <zash@zash.se>
date Fri, 12 Aug 2022 17:13:58 +0200
parents fc6a618bfe4e
children 3bcefa9cf1ca
files mod_rest/res/schema-xmpp.json
diffstat 1 files changed, 23 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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"
             },