Diff

mod_rest/res/schema-xmpp.json @ 4741:3f2342eacb26

mod_rest: Add XEP-0059 mapping Will be useful for MAM
author Kim Alvefur <zash@zash.se>
date Thu, 04 Nov 2021 19:46:38 +0100
parent 4740:beeacb25dea9
child 4742:b7df2c61a144
line wrap: on
line diff
--- a/mod_rest/res/schema-xmpp.json	Thu Nov 04 19:36:11 2021 +0100
+++ b/mod_rest/res/schema-xmpp.json	Thu Nov 04 19:46:38 2021 +0100
@@ -149,6 +149,37 @@
             "namespace" : "http://jabber.org/protocol/nick"
          }
       },
+      "rsm" : {
+         "properties" : {
+            "after" : {
+               "type" : "string"
+            },
+            "before" : {
+               "type" : "string"
+            },
+            "count" : {
+               "type" : "integer"
+            },
+            "first" : {
+               "type" : "string"
+            },
+            "index" : {
+               "type" : "integer"
+            },
+            "last" : {
+               "type" : "string"
+            },
+            "max" : {
+               "type" : "integer"
+            }
+         },
+         "title" : "XEP-0059: Result Set Management",
+         "type" : "object",
+         "xml" : {
+            "name" : "set",
+            "namespace" : "http://jabber.org/protocol/rsm"
+         }
+      },
       "to" : {
          "description" : "the intended recipient for the stanza",
          "example" : "alice@another.example",