# HG changeset patch # User Kim Alvefur # Date 1616451265 -3600 # Node ID 6e20e6bf96f0524eb97efd4af8b14ba1f3b87557 # Parent 08b71d02c6dc29f169295bed21e07e8306a5c277 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap) before: oob_url: http://example.com/ after: oob: url: http://example.com/ desc: optional description Deals with the fact that the name and namespace differs based on whether it's in an iq or message stanza, unlike oob_url diff -r 08b71d02c6dc -r 6e20e6bf96f0 mod_rest/res/schema-xmpp.json --- a/mod_rest/res/schema-xmpp.json Mon Mar 22 21:20:03 2021 +0100 +++ b/mod_rest/res/schema-xmpp.json Mon Mar 22 23:14:25 2021 +0100 @@ -62,6 +62,23 @@ "properties" : { "iq" : { "properties" : { + "oob" : { + "properties" : { + "desc" : { + "type" : "string" + }, + "url" : { + "format" : "uri", + "type" : "string" + } + }, + "title" : "XEP-0066: Out of Band Data", + "type" : "object", + "xml" : { + "name" : "query", + "namespace" : "jabber:iq:oob" + } + }, "ping" : { "description" : "Test reachability of some XMPP address", "enum" : [ @@ -151,6 +168,23 @@ "example" : "Hello, World!", "type" : "string" }, + "oob" : { + "properties" : { + "desc" : { + "type" : "string" + }, + "url" : { + "format" : "uri", + "type" : "string" + } + }, + "title" : "XEP-0066: Out of Band Data", + "type" : "object", + "xml" : { + "name" : "x", + "namespace" : "jabber:x:oob" + } + }, "replace" : { "description" : "For indicating that a message is a correction of the last sent message.", "title" : "XEP-0308: Last Message Correction",