# HG changeset patch # User Kim Alvefur # Date 1636053482 -3600 # Node ID 566e54a07f5467f4520d83a04d5fc6e39188bc5d # Parent 88f5e12c835140cf6898df5fa29cdde64fa6420d mod_rest: Map the XEP-0313 element to make paging work diff -r 88f5e12c8351 -r 566e54a07f54 mod_rest/jsonmap.lib.lua --- a/mod_rest/jsonmap.lib.lua Thu Nov 04 20:17:07 2021 +0100 +++ b/mod_rest/jsonmap.lib.lua Thu Nov 04 20:18:02 2021 +0100 @@ -21,6 +21,7 @@ schema.properties.message.properties.forwarded.properties.message.properties = schema.properties.message.properties; schema.properties.iq.properties.archive.properties.form = schema._common.dataform; schema.properties.iq.properties.archive.properties.page = schema._common.rsm; + schema.properties.iq.properties.result.properties.page = schema._common.rsm; schema._common = nil; end end diff -r 88f5e12c8351 -r 566e54a07f54 mod_rest/res/schema-xmpp.json --- a/mod_rest/res/schema-xmpp.json Thu Nov 04 20:17:07 2021 +0100 +++ b/mod_rest/res/schema-xmpp.json Thu Nov 04 20:18:02 2021 +0100 @@ -458,6 +458,18 @@ "namespace" : "jabber:iq:register" } }, + "result" : { + "properties" : { + "page" : { + "$ref" : "#_common/rsm" + } + }, + "type" : "object", + "xml" : { + "name" : "fin", + "namespace" : "urn:xmpp:mam:2" + } + }, "stats" : { "description" : "Simple statistics gathering, array of (name, unit, value) tuples.", "items" : {