# HG changeset patch # User Kim Alvefur # Date 1730849680 -3600 # Node ID 4ed37206cd9eb9e5ab7995f039e93831cee19a9b # Parent 7201266ce3ddbb6db43a1fd15beb153bd9411f8f mod_rest: Add XEP-0377 spam reporting to JSON mapping diff -r 7201266ce3dd -r 4ed37206cd9e mod_rest/res/schema-xmpp.json --- a/mod_rest/res/schema-xmpp.json Wed Nov 06 00:33:38 2024 +0100 +++ b/mod_rest/res/schema-xmpp.json Wed Nov 06 00:34:40 2024 +0100 @@ -274,6 +274,27 @@ "xml" : { "attribute" : true } + }, + "report" : { + "properties" : { + "reason" : { + "enum" : [ + "urn:xmpp:reporting:spam", + "urn:xmpp:reporting:abuse" + ], + "type" : "string", + "xml" : { + "attribute" : true + } + }, + "stanza_ids" : { + "$ref" : "#/properties/message/properties/stanza_ids" + } + }, + "xml" : { + "name" : "report", + "namespace" : "urn:xmpp:reporting:1" + } } }, "type" : "object",