Software /
code /
prosody-modules
Diff
mod_rest/res/schema-xmpp.json @ 4935:a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
The previous 'join' mapping was apparently lost in translation when
swithing to datamapper, so might as well map some properties allowing
history control. Usually you probably want either zero history or
history since the last known time of being joined. Maybe that the former
should be the default?
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 30 Apr 2022 01:00:01 +0200 |
parent | 4916:3dc8e329d233 |
child | 4936:d63657a85fb4 |
line wrap: on
line diff
--- a/mod_rest/res/schema-xmpp.json Tue Apr 26 22:42:09 2022 +0200 +++ b/mod_rest/res/schema-xmpp.json Sat Apr 30 01:00:01 2022 +0200 @@ -1078,6 +1078,48 @@ "lang" : { "$ref" : "#/_common/lang" }, + "muc" : { + "properties" : { + "history" : { + "properties" : { + "maxchars" : { + "minimum" : 0, + "type" : "integer", + "xml" : { + "attribute" : true + } + }, + "maxstanzas" : { + "minimum" : 0, + "type" : "integer", + "xml" : { + "attribute" : true + } + }, + "seconds" : { + "minimum" : 0, + "type" : "integer", + "xml" : { + "attribute" : true + } + }, + "since" : { + "format" : "date-time", + "type" : "string", + "xml" : { + "attribute" : true + } + } + }, + "type" : "object" + } + }, + "type" : "object", + "xml" : { + "name" : "x", + "namespace" : "http://jabber.org/protocol/muc" + } + }, "nick" : { "$ref" : "#/_common/nick" },