Software /
code /
prosody-modules
Changeset
6038:7201266ce3dd
mod_rest: Add XEP-0191 blocking to JSON mapping
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 06 Nov 2024 00:33:38 +0100 |
parents | 6037:277ccafb4826 |
children | 6039:4ed37206cd9e |
files | mod_rest/res/schema-xmpp.json |
diffstat | 1 files changed, 22 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_rest/res/schema-xmpp.json Thu Oct 31 21:49:32 2024 +0100 +++ b/mod_rest/res/schema-xmpp.json Wed Nov 06 00:33:38 2024 +0100 @@ -266,6 +266,28 @@ "namespace" : "urn:xmpp:mam:2" } }, + "block" : { + "items" : { + "properties" : { + "jid" : { + "type" : "string", + "xml" : { + "attribute" : true + } + } + }, + "type" : "object", + "xml" : { + "name" : "item" + } + }, + "type" : "array", + "xml" : { + "name" : "block", + "namespace" : "urn:xmpp:blocking", + "wrapped" : true + } + }, "dataform" : { "$ref" : "#/_common/dataform" },