Software /
code /
prosody-modules
Changeset
6042:c038b1e01a0e
mod_rest: Add XEP-0191 blocklist retrieval to JSON mapping
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 06 Nov 2024 09:50:48 +0100 |
parents | 6041:f301d777ee49 |
children | 6043:7b093a9b95ea |
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 Wed Nov 06 00:43:31 2024 +0100 +++ b/mod_rest/res/schema-xmpp.json Wed Nov 06 09:50:48 2024 +0100 @@ -309,6 +309,28 @@ "wrapped" : true } }, + "blocklist" : { + "items" : { + "properties" : { + "jid" : { + "type" : "string", + "xml" : { + "attribute" : true + } + } + }, + "type" : "object", + "xml" : { + "name" : "item" + } + }, + "type" : "array", + "xml" : { + "name" : "blocklist", + "namespace" : "urn:xmpp:blocking", + "wrapped" : true + } + }, "dataform" : { "$ref" : "#/_common/dataform" },