Software /
code /
prosody-modules
Comparison
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 |
comparison
equal
deleted
inserted
replaced
4522:08b71d02c6dc | 4523:6e20e6bf96f0 |
---|---|
60 } | 60 } |
61 }, | 61 }, |
62 "properties" : { | 62 "properties" : { |
63 "iq" : { | 63 "iq" : { |
64 "properties" : { | 64 "properties" : { |
65 "oob" : { | |
66 "properties" : { | |
67 "desc" : { | |
68 "type" : "string" | |
69 }, | |
70 "url" : { | |
71 "format" : "uri", | |
72 "type" : "string" | |
73 } | |
74 }, | |
75 "title" : "XEP-0066: Out of Band Data", | |
76 "type" : "object", | |
77 "xml" : { | |
78 "name" : "query", | |
79 "namespace" : "jabber:iq:oob" | |
80 } | |
81 }, | |
65 "ping" : { | 82 "ping" : { |
66 "description" : "Test reachability of some XMPP address", | 83 "description" : "Test reachability of some XMPP address", |
67 "enum" : [ | 84 "enum" : [ |
68 true | 85 true |
69 ], | 86 ], |
149 "body" : { | 166 "body" : { |
150 "description" : "Human-readable chat message", | 167 "description" : "Human-readable chat message", |
151 "example" : "Hello, World!", | 168 "example" : "Hello, World!", |
152 "type" : "string" | 169 "type" : "string" |
153 }, | 170 }, |
171 "oob" : { | |
172 "properties" : { | |
173 "desc" : { | |
174 "type" : "string" | |
175 }, | |
176 "url" : { | |
177 "format" : "uri", | |
178 "type" : "string" | |
179 } | |
180 }, | |
181 "title" : "XEP-0066: Out of Band Data", | |
182 "type" : "object", | |
183 "xml" : { | |
184 "name" : "x", | |
185 "namespace" : "jabber:x:oob" | |
186 } | |
187 }, | |
154 "replace" : { | 188 "replace" : { |
155 "description" : "For indicating that a message is a correction of the last sent message.", | 189 "description" : "For indicating that a message is a correction of the last sent message.", |
156 "title" : "XEP-0308: Last Message Correction", | 190 "title" : "XEP-0308: Last Message Correction", |
157 "type" : "string", | 191 "type" : "string", |
158 "xml" : { | 192 "xml" : { |