diff mod_rest/res/schema-xmpp.json @ 4742:b7df2c61a144

mod_rest: Add support for mapping of XEP-0313 query iqs
author Kim Alvefur <zash@zash.se>
date Thu, 04 Nov 2021 20:03:36 +0100
parents 3f2342eacb26
children 566e54a07f54
line wrap: on
line diff
--- a/mod_rest/res/schema-xmpp.json	Thu Nov 04 19:46:38 2021 +0100
+++ b/mod_rest/res/schema-xmpp.json	Thu Nov 04 20:03:36 2021 +0100
@@ -200,6 +200,27 @@
    "properties" : {
       "iq" : {
          "properties" : {
+            "archive" : {
+               "properties" : {
+                  "form" : {
+                     "$ref" : "#_common/dataform"
+                  },
+                  "page" : {
+                     "$ref" : "#_common/rsm"
+                  },
+                  "queryid" : {
+                     "type" : "string",
+                     "xml" : {
+                        "attribute" : true
+                     }
+                  }
+               },
+               "type" : "object",
+               "xml" : {
+                  "name" : "query",
+                  "namespace" : "urn:xmpp:mam:2"
+               }
+            },
             "extdisco" : {
                "properties" : {
                   "services" : {