Diff

mod_rest/res/schema-xmpp.json @ 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
parent 4958:2735e29cf94b
child 5080:ce9b836f66d5
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"
             },