Mercurial > prosody-modules
comparison mod_rest/res/schema-xmpp.json @ 4936: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 |
parents | 3dc8e329d233 |
children | d63657a85fb4 |
comparison
equal
deleted
inserted
replaced
4935:ae83200fb55f | 4936:a85efae90e21 |
---|---|
1076 } | 1076 } |
1077 }, | 1077 }, |
1078 "lang" : { | 1078 "lang" : { |
1079 "$ref" : "#/_common/lang" | 1079 "$ref" : "#/_common/lang" |
1080 }, | 1080 }, |
1081 "muc" : { | |
1082 "properties" : { | |
1083 "history" : { | |
1084 "properties" : { | |
1085 "maxchars" : { | |
1086 "minimum" : 0, | |
1087 "type" : "integer", | |
1088 "xml" : { | |
1089 "attribute" : true | |
1090 } | |
1091 }, | |
1092 "maxstanzas" : { | |
1093 "minimum" : 0, | |
1094 "type" : "integer", | |
1095 "xml" : { | |
1096 "attribute" : true | |
1097 } | |
1098 }, | |
1099 "seconds" : { | |
1100 "minimum" : 0, | |
1101 "type" : "integer", | |
1102 "xml" : { | |
1103 "attribute" : true | |
1104 } | |
1105 }, | |
1106 "since" : { | |
1107 "format" : "date-time", | |
1108 "type" : "string", | |
1109 "xml" : { | |
1110 "attribute" : true | |
1111 } | |
1112 } | |
1113 }, | |
1114 "type" : "object" | |
1115 } | |
1116 }, | |
1117 "type" : "object", | |
1118 "xml" : { | |
1119 "name" : "x", | |
1120 "namespace" : "http://jabber.org/protocol/muc" | |
1121 } | |
1122 }, | |
1081 "nick" : { | 1123 "nick" : { |
1082 "$ref" : "#/_common/nick" | 1124 "$ref" : "#/_common/nick" |
1083 }, | 1125 }, |
1084 "priority" : { | 1126 "priority" : { |
1085 "description" : "Presence priority", | 1127 "description" : "Presence priority", |