# HG changeset patch # User Kim Alvefur # Date 1730883048 -3600 # Node ID c038b1e01a0e77ec60c0f9ec2df673640e408b88 # Parent f301d777ee49adf0db336f717567a08c0ecbddd0 mod_rest: Add XEP-0191 blocklist retrieval to JSON mapping diff -r f301d777ee49 -r c038b1e01a0e mod_rest/res/schema-xmpp.json --- 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" },