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
--- 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",