Diff

mod_rest/res/schema-xmpp.json @ 4733:755dd83e9214

mod_rest: Add JSON mapping of XEP-0313 archive result container
author Kim Alvefur <zash@zash.se>
date Wed, 27 Oct 2021 20:54:54 +0200
parent 4732:607cac9b9393
child 4740:beeacb25dea9
line wrap: on
line diff
--- a/mod_rest/res/schema-xmpp.json	Wed Oct 27 20:45:28 2021 +0200
+++ b/mod_rest/res/schema-xmpp.json	Wed Oct 27 20:54:54 2021 +0200
@@ -370,6 +370,24 @@
       },
       "message" : {
          "properties" : {
+            "archive" : {
+               "properties" : {
+                  "forward" : {
+                     "$ref" : "#forwarded"
+                  },
+                  "queryid" : {
+                     "type" : "string",
+                     "xml" : {
+                        "attribute" : true
+                     }
+                  }
+               },
+               "type" : "object",
+               "xml" : {
+                  "name" : "result",
+                  "namespace" : "urn:xmpp:mam:2"
+               }
+            },
             "attach_to" : {
                "title" : "XEP-0367: Message Attaching",
                "type" : "string",