Software /
code /
prosody-modules
Diff
mod_rest/res/schema-xmpp.json @ 4523:6e20e6bf96f0
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
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 22 Mar 2021 23:14:25 +0100 |
parent | 4520:bd320ec2c2fc |
child | 4530:33c149d0261d |
line wrap: on
line diff
--- 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",