Mercurial > prosody-modules
annotate mod_rest/res/schema-xmpp.json @ 4936:a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
The previous 'join' mapping was apparently lost in translation when
swithing to datamapper, so might as well map some properties allowing
history control. Usually you probably want either zero history or
history since the last known time of being joined. Maybe that the former
should be the default?
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 30 Apr 2022 01:00:01 +0200 |
parents | 3dc8e329d233 |
children | d63657a85fb4 |
rev | line source |
---|---|
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1 { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
2 "_common" : { |
4740
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
3 "dataform" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
4 "properties" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
5 "fields" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
6 "items" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
7 "properties" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
8 "desc" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
9 "type" : "string" |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
10 }, |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
11 "label" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
12 "type" : "string", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
13 "xml" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
14 "attribute" : true |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
15 } |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
16 }, |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
17 "options" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
18 "items" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
19 "properties" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
20 "label" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
21 "type" : "string", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
22 "xml" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
23 "attribute" : true |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
24 } |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
25 }, |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
26 "value" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
27 "type" : "string" |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
28 } |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
29 }, |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
30 "type" : "object", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
31 "xml" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
32 "name" : "option" |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
33 } |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
34 }, |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
35 "type" : "array" |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
36 }, |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
37 "required" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
38 "type" : "boolean", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
39 "xml" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
40 "x_name_is_value" : true |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
41 } |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
42 }, |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
43 "type" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
44 "enum" : [ |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
45 "boolean", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
46 "fixed", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
47 "hidden", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
48 "jid-multi", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
49 "jid-single", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
50 "list-multi", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
51 "list-single", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
52 "text-multi", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
53 "text-private", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
54 "text-single" |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
55 ], |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
56 "type" : "string", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
57 "xml" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
58 "attribute" : true |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
59 } |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
60 }, |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
61 "values" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
62 "items" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
63 "type" : "string", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
64 "xml" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
65 "name" : "value" |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
66 } |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
67 }, |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
68 "type" : "array" |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
69 }, |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
70 "var" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
71 "type" : "string", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
72 "xml" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
73 "attribute" : true |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
74 } |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
75 } |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
76 }, |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
77 "type" : "object", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
78 "xml" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
79 "name" : "field" |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
80 } |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
81 }, |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
82 "type" : "array" |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
83 }, |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
84 "instructions" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
85 "type" : "string" |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
86 }, |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
87 "title" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
88 "type" : "string" |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
89 }, |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
90 "type" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
91 "enum" : [ |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
92 "cancel", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
93 "form", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
94 "result", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
95 "submit" |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
96 ], |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
97 "type" : "string", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
98 "xml" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
99 "attribute" : true |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
100 } |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
101 } |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
102 }, |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
103 "title" : "XEP-0004: Data Forms", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
104 "type" : "object", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
105 "xml" : { |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
106 "name" : "x", |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
107 "namespace" : "jabber:x:data" |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
108 } |
beeacb25dea9
mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents:
4733
diff
changeset
|
109 }, |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
110 "delay" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
111 "format" : "date-time", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
112 "title" : "XEP-0203: Delayed Delivery", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
113 "type" : "string", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
114 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
115 "name" : "delay", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
116 "namespace" : "urn:xmpp:delay", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
117 "x_single_attribute" : "stamp" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
118 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
119 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
120 "from" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
121 "description" : "the sender of the stanza", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
122 "example" : "bob@example.net", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
123 "format" : "xmpp-jid", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
124 "type" : "string", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
125 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
126 "attribute" : true |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
127 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
128 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
129 "id" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
130 "description" : "Reasonably unique id. mod_rest generates one if left out.", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
131 "type" : "string", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
132 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
133 "attribute" : true |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
134 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
135 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
136 "lang" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
137 "description" : "Language code", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
138 "example" : "en", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
139 "type" : "string", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
140 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
141 "attribute" : true, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
142 "prefix" : "xml" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
143 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
144 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
145 "nick" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
146 "type" : "string", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
147 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
148 "name" : "nick", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
149 "namespace" : "http://jabber.org/protocol/nick" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
150 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
151 }, |
4917
3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents:
4889
diff
changeset
|
152 "payload" : { |
3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents:
4889
diff
changeset
|
153 "properties" : { |
3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents:
4889
diff
changeset
|
154 "data" : { |
3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents:
4889
diff
changeset
|
155 "format" : "json", |
3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents:
4889
diff
changeset
|
156 "type" : "string", |
3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents:
4889
diff
changeset
|
157 "xml" : { |
3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents:
4889
diff
changeset
|
158 "text" : true |
3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents:
4889
diff
changeset
|
159 } |
3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents:
4889
diff
changeset
|
160 }, |
3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents:
4889
diff
changeset
|
161 "datatype" : { |
3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents:
4889
diff
changeset
|
162 "type" : "string", |
3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents:
4889
diff
changeset
|
163 "xml" : { |
3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents:
4889
diff
changeset
|
164 "attribute" : true |
3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents:
4889
diff
changeset
|
165 } |
3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents:
4889
diff
changeset
|
166 } |
3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents:
4889
diff
changeset
|
167 }, |
3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents:
4889
diff
changeset
|
168 "title" : "XEP-0432: Simple JSON Messaging", |
3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents:
4889
diff
changeset
|
169 "type" : "object", |
3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents:
4889
diff
changeset
|
170 "xml" : { |
3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents:
4889
diff
changeset
|
171 "namespace" : "urn:xmpp:json-msg:0" |
3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents:
4889
diff
changeset
|
172 } |
3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents:
4889
diff
changeset
|
173 }, |
4741 | 174 "rsm" : { |
175 "properties" : { | |
176 "after" : { | |
177 "type" : "string" | |
178 }, | |
179 "before" : { | |
180 "type" : "string" | |
181 }, | |
182 "count" : { | |
183 "type" : "integer" | |
184 }, | |
185 "first" : { | |
186 "type" : "string" | |
187 }, | |
188 "index" : { | |
189 "type" : "integer" | |
190 }, | |
191 "last" : { | |
192 "type" : "string" | |
193 }, | |
194 "max" : { | |
195 "type" : "integer" | |
196 } | |
197 }, | |
198 "title" : "XEP-0059: Result Set Management", | |
199 "type" : "object", | |
200 "xml" : { | |
201 "name" : "set", | |
202 "namespace" : "http://jabber.org/protocol/rsm" | |
203 } | |
204 }, | |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
205 "to" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
206 "description" : "the intended recipient for the stanza", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
207 "example" : "alice@another.example", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
208 "format" : "xmpp-jid", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
209 "type" : "string", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
210 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
211 "attribute" : true |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
212 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
213 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
214 "type" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
215 "description" : "Stanza type", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
216 "type" : "string", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
217 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
218 "attribute" : true |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
219 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
220 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
221 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
222 "properties" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
223 "iq" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
224 "properties" : { |
4742
b7df2c61a144
mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents:
4741
diff
changeset
|
225 "archive" : { |
b7df2c61a144
mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents:
4741
diff
changeset
|
226 "properties" : { |
b7df2c61a144
mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents:
4741
diff
changeset
|
227 "form" : { |
4840
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
228 "$ref" : "#/_common/dataform" |
4742
b7df2c61a144
mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents:
4741
diff
changeset
|
229 }, |
b7df2c61a144
mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents:
4741
diff
changeset
|
230 "page" : { |
4840
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
231 "$ref" : "#/_common/rsm" |
4742
b7df2c61a144
mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents:
4741
diff
changeset
|
232 }, |
b7df2c61a144
mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents:
4741
diff
changeset
|
233 "queryid" : { |
b7df2c61a144
mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents:
4741
diff
changeset
|
234 "type" : "string", |
b7df2c61a144
mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents:
4741
diff
changeset
|
235 "xml" : { |
b7df2c61a144
mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents:
4741
diff
changeset
|
236 "attribute" : true |
b7df2c61a144
mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents:
4741
diff
changeset
|
237 } |
b7df2c61a144
mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents:
4741
diff
changeset
|
238 } |
b7df2c61a144
mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents:
4741
diff
changeset
|
239 }, |
b7df2c61a144
mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents:
4741
diff
changeset
|
240 "type" : "object", |
b7df2c61a144
mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents:
4741
diff
changeset
|
241 "xml" : { |
b7df2c61a144
mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents:
4741
diff
changeset
|
242 "name" : "query", |
b7df2c61a144
mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents:
4741
diff
changeset
|
243 "namespace" : "urn:xmpp:mam:2" |
b7df2c61a144
mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents:
4741
diff
changeset
|
244 } |
b7df2c61a144
mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents:
4741
diff
changeset
|
245 }, |
4840
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
246 "dataform" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
247 "$ref" : "#/_common/dataform" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
248 }, |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
249 "delay" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
250 "$ref" : "#/_common/delay" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
251 }, |
4726
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
252 "extdisco" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
253 "properties" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
254 "services" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
255 "items" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
256 "properties" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
257 "expires" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
258 "format" : "datetime", |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
259 "type" : "string", |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
260 "xml" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
261 "attribute" : true |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
262 } |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
263 }, |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
264 "host" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
265 "type" : "string", |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
266 "xml" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
267 "attribute" : true |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
268 } |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
269 }, |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
270 "name" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
271 "type" : "string", |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
272 "xml" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
273 "attribute" : true |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
274 } |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
275 }, |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
276 "password" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
277 "type" : "string", |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
278 "xml" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
279 "attribute" : true |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
280 } |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
281 }, |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
282 "port" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
283 "type" : "integer", |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
284 "xml" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
285 "attribute" : true |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
286 } |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
287 }, |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
288 "restricted" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
289 "type" : "boolean", |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
290 "xml" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
291 "attribute" : true |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
292 } |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
293 }, |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
294 "transport" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
295 "type" : "string", |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
296 "xml" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
297 "attribute" : true |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
298 } |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
299 }, |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
300 "type" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
301 "type" : "string", |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
302 "xml" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
303 "attribute" : true |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
304 } |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
305 }, |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
306 "username" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
307 "type" : "string", |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
308 "xml" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
309 "attribute" : true |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
310 } |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
311 } |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
312 }, |
4800
1e2f53fb2099
mod_rest: Fix mistaken way of specifying required fields in XEP-0215 map
Kim Alvefur <zash@zash.se>
parents:
4748
diff
changeset
|
313 "required" : [ |
1e2f53fb2099
mod_rest: Fix mistaken way of specifying required fields in XEP-0215 map
Kim Alvefur <zash@zash.se>
parents:
4748
diff
changeset
|
314 "type", |
1e2f53fb2099
mod_rest: Fix mistaken way of specifying required fields in XEP-0215 map
Kim Alvefur <zash@zash.se>
parents:
4748
diff
changeset
|
315 "host" |
1e2f53fb2099
mod_rest: Fix mistaken way of specifying required fields in XEP-0215 map
Kim Alvefur <zash@zash.se>
parents:
4748
diff
changeset
|
316 ], |
4726
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
317 "type" : "object", |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
318 "xml" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
319 "name" : "service" |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
320 } |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
321 }, |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
322 "type" : "array" |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
323 }, |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
324 "type" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
325 "type" : "string", |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
326 "xml" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
327 "attribute" : true |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
328 } |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
329 } |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
330 }, |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
331 "title" : "XEP-0215: External Service Discovery", |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
332 "type" : "object", |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
333 "xml" : { |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
334 "name" : "services", |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
335 "namespace" : "urn:xmpp:extdisco:2" |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
336 } |
611bc06c4160
mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
4720
diff
changeset
|
337 }, |
4840
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
338 "from" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
339 "$ref" : "#/_common/from" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
340 }, |
4720
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
341 "gateway" : { |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
342 "properties" : { |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
343 "desc" : { |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
344 "type" : "text" |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
345 }, |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
346 "jid" : { |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
347 "type" : "string" |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
348 }, |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
349 "prompt" : { |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
350 "type" : "string" |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
351 } |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
352 }, |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
353 "title" : "XEP-0100: Gateway Interaction", |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
354 "type" : "object", |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
355 "xml" : { |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
356 "name" : "query", |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
357 "namespace" : "jabber:iq:gateway" |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
358 } |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
359 }, |
4840
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
360 "id" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
361 "$ref" : "#/_common/id" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
362 }, |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
363 "lang" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
364 "$ref" : "#/_common/lang" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
365 }, |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
366 "lastactivity" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
367 "properties" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
368 "seconds" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
369 "minimum" : 0, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
370 "type" : "integer", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
371 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
372 "attribute" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
373 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
374 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
375 "status" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
376 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
377 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
378 "text" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
379 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
380 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
381 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
382 "title" : "XEP-0012: Last Activity", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
383 "type" : "object", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
384 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
385 "name" : "query", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
386 "namespace" : "jabber:iq:last" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
387 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
388 }, |
4840
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
389 "nick" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
390 "$ref" : "#/_common/nick" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
391 }, |
4523
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
392 "oob" : { |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
393 "properties" : { |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
394 "desc" : { |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
395 "type" : "string" |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
396 }, |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
397 "url" : { |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
398 "format" : "uri", |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
399 "type" : "string" |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
400 } |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
401 }, |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
402 "title" : "XEP-0066: Out of Band Data", |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
403 "type" : "object", |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
404 "xml" : { |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
405 "name" : "query", |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
406 "namespace" : "jabber:iq:oob" |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
407 } |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
408 }, |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
409 "ping" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
410 "description" : "Test reachability of some XMPP address", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
411 "enum" : [ |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
412 true |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
413 ], |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
414 "title" : "XEP-0199: XMPP Ping", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
415 "type" : "boolean", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
416 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
417 "name" : "ping", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
418 "namespace" : "urn:xmpp:ping", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
419 "x_name_is_value" : true |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
420 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
421 }, |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
422 "register" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
423 "description" : "Register with a service", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
424 "properties" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
425 "address" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
426 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
427 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
428 "city" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
429 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
430 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
431 "date" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
432 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
433 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
434 "email" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
435 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
436 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
437 "first" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
438 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
439 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
440 "instructions" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
441 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
442 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
443 "key" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
444 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
445 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
446 "last" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
447 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
448 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
449 "misc" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
450 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
451 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
452 "name" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
453 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
454 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
455 "nick" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
456 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
457 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
458 "password" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
459 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
460 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
461 "phone" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
462 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
463 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
464 "registered" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
465 "type" : "boolean", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
466 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
467 "x_name_is_value" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
468 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
469 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
470 "remove" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
471 "type" : "boolean", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
472 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
473 "x_name_is_value" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
474 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
475 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
476 "state" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
477 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
478 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
479 "text" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
480 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
481 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
482 "url" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
483 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
484 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
485 "username" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
486 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
487 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
488 "zip" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
489 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
490 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
491 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
492 "required" : [ |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
493 "username", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
494 "password" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
495 ], |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
496 "title" : "XEP-0077: In-Band Registration", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
497 "type" : "object", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
498 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
499 "name" : "query", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
500 "namespace" : "jabber:iq:register" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
501 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
502 }, |
4747
566e54a07f54
mod_rest: Map the XEP-0313 <fin> element to make paging work
Kim Alvefur <zash@zash.se>
parents:
4742
diff
changeset
|
503 "result" : { |
566e54a07f54
mod_rest: Map the XEP-0313 <fin> element to make paging work
Kim Alvefur <zash@zash.se>
parents:
4742
diff
changeset
|
504 "properties" : { |
566e54a07f54
mod_rest: Map the XEP-0313 <fin> element to make paging work
Kim Alvefur <zash@zash.se>
parents:
4742
diff
changeset
|
505 "page" : { |
4840
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
506 "$ref" : "#/_common/rsm" |
4747
566e54a07f54
mod_rest: Map the XEP-0313 <fin> element to make paging work
Kim Alvefur <zash@zash.se>
parents:
4742
diff
changeset
|
507 } |
566e54a07f54
mod_rest: Map the XEP-0313 <fin> element to make paging work
Kim Alvefur <zash@zash.se>
parents:
4742
diff
changeset
|
508 }, |
566e54a07f54
mod_rest: Map the XEP-0313 <fin> element to make paging work
Kim Alvefur <zash@zash.se>
parents:
4742
diff
changeset
|
509 "type" : "object", |
566e54a07f54
mod_rest: Map the XEP-0313 <fin> element to make paging work
Kim Alvefur <zash@zash.se>
parents:
4742
diff
changeset
|
510 "xml" : { |
566e54a07f54
mod_rest: Map the XEP-0313 <fin> element to make paging work
Kim Alvefur <zash@zash.se>
parents:
4742
diff
changeset
|
511 "name" : "fin", |
566e54a07f54
mod_rest: Map the XEP-0313 <fin> element to make paging work
Kim Alvefur <zash@zash.se>
parents:
4742
diff
changeset
|
512 "namespace" : "urn:xmpp:mam:2" |
566e54a07f54
mod_rest: Map the XEP-0313 <fin> element to make paging work
Kim Alvefur <zash@zash.se>
parents:
4742
diff
changeset
|
513 } |
566e54a07f54
mod_rest: Map the XEP-0313 <fin> element to make paging work
Kim Alvefur <zash@zash.se>
parents:
4742
diff
changeset
|
514 }, |
4840
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
515 "rsm" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
516 "$ref" : "#/_common/rsm" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
517 }, |
4519
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
518 "stats" : { |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
519 "description" : "Simple statistics gathering, array of (name, unit, value) tuples.", |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
520 "items" : { |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
521 "properties" : { |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
522 "name" : { |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
523 "type" : "string", |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
524 "xml" : { |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
525 "attribute" : true |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
526 } |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
527 }, |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
528 "unit" : { |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
529 "type" : "string", |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
530 "xml" : { |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
531 "attribute" : true |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
532 } |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
533 }, |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
534 "value" : { |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
535 "type" : "number", |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
536 "xml" : { |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
537 "attribute" : true |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
538 } |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
539 } |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
540 }, |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
541 "type" : "object", |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
542 "xml" : { |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
543 "name" : "stat" |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
544 } |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
545 }, |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
546 "title" : "XEP-0039: Statistics Gathering", |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
547 "type" : "array", |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
548 "xml" : { |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
549 "name" : "query", |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
550 "namespace" : "http://jabber.org/protocol/stats", |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
551 "wrapped" : true |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
552 } |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
553 }, |
4840
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
554 "to" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
555 "$ref" : "#/_common/to" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
556 }, |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
557 "type" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
558 "$ref" : "#/_common/type" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
559 }, |
4889
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
560 "upload_request" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
561 "properties" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
562 "content-type" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
563 "xml" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
564 "attribute" : true, |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
565 "name" : "content-type" |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
566 } |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
567 }, |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
568 "filename" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
569 "type" : "string", |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
570 "xml" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
571 "attribute" : true |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
572 } |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
573 }, |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
574 "size" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
575 "type" : "integer", |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
576 "xml" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
577 "attribute" : true |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
578 } |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
579 } |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
580 }, |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
581 "required" : [ |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
582 "filename", |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
583 "size" |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
584 ], |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
585 "type" : "object", |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
586 "xml" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
587 "name" : "request", |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
588 "namespace" : "urn:xmpp:http:upload:0" |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
589 } |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
590 }, |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
591 "upload_slot" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
592 "properties" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
593 "get" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
594 "properties" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
595 "url" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
596 "format" : "uri", |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
597 "type" : "string", |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
598 "xml" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
599 "attribute" : true |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
600 } |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
601 } |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
602 }, |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
603 "type" : "object" |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
604 }, |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
605 "put" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
606 "properties" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
607 "headers" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
608 "items" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
609 "properties" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
610 "name" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
611 "enum" : [ |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
612 "Authorization", |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
613 "Cookie", |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
614 "Expires" |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
615 ], |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
616 "type" : "string", |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
617 "xml" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
618 "attribute" : true |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
619 } |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
620 }, |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
621 "value" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
622 "type" : "string", |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
623 "xml" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
624 "text" : true |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
625 } |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
626 } |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
627 }, |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
628 "required" : [ |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
629 "name", |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
630 "value" |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
631 ], |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
632 "type" : "object", |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
633 "xml" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
634 "name" : "header" |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
635 } |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
636 }, |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
637 "type" : "array" |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
638 }, |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
639 "url" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
640 "format" : "uri", |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
641 "type" : "string", |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
642 "xml" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
643 "attribute" : true |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
644 } |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
645 } |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
646 }, |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
647 "type" : "object" |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
648 } |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
649 }, |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
650 "type" : "object", |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
651 "xml" : { |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
652 "name" : "slot", |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
653 "namespace" : "urn:xmpp:http:upload:0" |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
654 } |
52522c71ad1a
mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents:
4841
diff
changeset
|
655 }, |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
656 "version" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
657 "description" : "Ask about software version information", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
658 "properties" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
659 "name" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
660 "example" : "My Software", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
661 "type" : "string" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
662 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
663 "os" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
664 "example" : "Linux", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
665 "type" : "string" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
666 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
667 "version" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
668 "example" : "1.0.0", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
669 "type" : "string" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
670 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
671 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
672 "required" : [ |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
673 "name", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
674 "version" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
675 ], |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
676 "title" : "XEP-0092: Software Version", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
677 "type" : "object", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
678 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
679 "name" : "query", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
680 "namespace" : "jabber:iq:version" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
681 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
682 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
683 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
684 "type" : "object", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
685 "xml" : { |
4841
f69c5a443156
mod_rest: Fix nested message stanzas in XEP-0297 containers
Kim Alvefur <zash@zash.se>
parents:
4840
diff
changeset
|
686 "name" : "iq", |
f69c5a443156
mod_rest: Fix nested message stanzas in XEP-0297 containers
Kim Alvefur <zash@zash.se>
parents:
4840
diff
changeset
|
687 "namespace" : "jabber:client" |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
688 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
689 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
690 "message" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
691 "properties" : { |
4733
755dd83e9214
mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents:
4732
diff
changeset
|
692 "archive" : { |
755dd83e9214
mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents:
4732
diff
changeset
|
693 "properties" : { |
755dd83e9214
mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents:
4732
diff
changeset
|
694 "forward" : { |
4840
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
695 "$ref" : "#/properties/message/properties/forwarded" |
4733
755dd83e9214
mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents:
4732
diff
changeset
|
696 }, |
755dd83e9214
mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents:
4732
diff
changeset
|
697 "queryid" : { |
755dd83e9214
mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents:
4732
diff
changeset
|
698 "type" : "string", |
755dd83e9214
mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents:
4732
diff
changeset
|
699 "xml" : { |
755dd83e9214
mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents:
4732
diff
changeset
|
700 "attribute" : true |
755dd83e9214
mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents:
4732
diff
changeset
|
701 } |
755dd83e9214
mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents:
4732
diff
changeset
|
702 } |
755dd83e9214
mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents:
4732
diff
changeset
|
703 }, |
755dd83e9214
mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents:
4732
diff
changeset
|
704 "type" : "object", |
755dd83e9214
mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents:
4732
diff
changeset
|
705 "xml" : { |
755dd83e9214
mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents:
4732
diff
changeset
|
706 "name" : "result", |
755dd83e9214
mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents:
4732
diff
changeset
|
707 "namespace" : "urn:xmpp:mam:2" |
755dd83e9214
mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents:
4732
diff
changeset
|
708 } |
755dd83e9214
mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents:
4732
diff
changeset
|
709 }, |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
710 "attach_to" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
711 "title" : "XEP-0367: Message Attaching", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
712 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
713 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
714 "name" : "attach-to", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
715 "namespace" : "urn:xmpp:message-attaching:1", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
716 "x_single_attribute" : "id" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
717 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
718 }, |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
719 "body" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
720 "description" : "Human-readable chat message", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
721 "example" : "Hello, World!", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
722 "type" : "string" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
723 }, |
4840
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
724 "dataform" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
725 "$ref" : "#/_common/dataform" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
726 }, |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
727 "delay" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
728 "$ref" : "#/_common/delay" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
729 }, |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
730 "displayed" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
731 "description" : "Message ID of a message that has been displayed", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
732 "title" : "XEP-0333: Chat Markers", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
733 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
734 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
735 "namespace" : "urn:xmpp:chat-markers:0" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
736 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
737 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
738 "fallback" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
739 "title" : "XEP-0428: Fallback Indication", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
740 "type" : "boolean", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
741 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
742 "name" : "fallback", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
743 "namespace" : "urn:xmpp:fallback:0", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
744 "x_name_is_value" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
745 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
746 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
747 "forwarded" : { |
4732
607cac9b9393
mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents:
4726
diff
changeset
|
748 "properties" : { |
607cac9b9393
mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents:
4726
diff
changeset
|
749 "delay" : { |
4840
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
750 "$ref" : "#/_common/delay" |
4732
607cac9b9393
mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents:
4726
diff
changeset
|
751 }, |
607cac9b9393
mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents:
4726
diff
changeset
|
752 "message" : { |
4841
f69c5a443156
mod_rest: Fix nested message stanzas in XEP-0297 containers
Kim Alvefur <zash@zash.se>
parents:
4840
diff
changeset
|
753 "$ref" : "#/properties/message" |
4732
607cac9b9393
mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents:
4726
diff
changeset
|
754 } |
607cac9b9393
mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents:
4726
diff
changeset
|
755 }, |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
756 "title" : "XEP-0297: Stanza Forwarding", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
757 "type" : "object", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
758 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
759 "name" : "forwarded", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
760 "namespace" : "urn:xmpp:forward:0" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
761 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
762 }, |
4840
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
763 "from" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
764 "$ref" : "#/_common/from" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
765 }, |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
766 "id" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
767 "$ref" : "#/_common/id" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
768 }, |
4549
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
769 "invite" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
770 "properties" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
771 "continue" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
772 "type" : "boolean", |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
773 "xml" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
774 "attribute" : true |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
775 } |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
776 }, |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
777 "jid" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
778 "format" : "xmpp-jid", |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
779 "type" : "string", |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
780 "xml" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
781 "attribute" : true |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
782 } |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
783 }, |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
784 "password" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
785 "type" : "string", |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
786 "xml" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
787 "attribute" : true |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
788 } |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
789 }, |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
790 "reason" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
791 "type" : "string", |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
792 "xml" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
793 "attribute" : true |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
794 } |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
795 }, |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
796 "thread" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
797 "type" : "string", |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
798 "xml" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
799 "attribute" : true |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
800 } |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
801 } |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
802 }, |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
803 "required" : [ |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
804 "jid" |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
805 ], |
4633
63c91f2a86e5
mod_rest: Fix typo (thanks codespell)
Kim Alvefur <zash@zash.se>
parents:
4549
diff
changeset
|
806 "title" : "XEP-0249: Direct MUC Invitations", |
4549
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
807 "type" : "object", |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
808 "xml" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
809 "name" : "x", |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
810 "namespace" : "jabber:x:conference" |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
811 } |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
812 }, |
4840
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
813 "lang" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
814 "$ref" : "#/_common/lang" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
815 }, |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
816 "markable" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
817 "title" : "XEP-0333: Chat Markers", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
818 "type" : "boolean", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
819 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
820 "namespace" : "urn:xmpp:chat-markers:0", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
821 "x_name_is_value" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
822 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
823 }, |
4840
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
824 "nick" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
825 "$ref" : "#/_common/nick" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
826 }, |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
827 "occupant_id" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
828 "title" : "XEP-0421: Anonymous unique occupant identifiers for MUCs", |
4533
578375759510
mod_rest: Remodel occupant-id (XEP-0421) as single attribute tag
Kim Alvefur <zash@zash.se>
parents:
4531
diff
changeset
|
829 "type" : "string", |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
830 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
831 "name" : "occupant-id", |
4533
578375759510
mod_rest: Remodel occupant-id (XEP-0421) as single attribute tag
Kim Alvefur <zash@zash.se>
parents:
4531
diff
changeset
|
832 "namespace" : "urn:xmpp:occupant-id:0", |
578375759510
mod_rest: Remodel occupant-id (XEP-0421) as single attribute tag
Kim Alvefur <zash@zash.se>
parents:
4531
diff
changeset
|
833 "x_single_attribute" : "id" |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
834 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
835 }, |
4523
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
836 "oob" : { |
4547
a9e997d5eb94
mod_rest: Replace 'oob_url' with datamapper-native 'oob'
Kim Alvefur <zash@zash.se>
parents:
4534
diff
changeset
|
837 "description" : "Reference a media file", |
4523
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
838 "properties" : { |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
839 "desc" : { |
4547
a9e997d5eb94
mod_rest: Replace 'oob_url' with datamapper-native 'oob'
Kim Alvefur <zash@zash.se>
parents:
4534
diff
changeset
|
840 "description" : "Optional description", |
4523
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
841 "type" : "string" |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
842 }, |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
843 "url" : { |
4547
a9e997d5eb94
mod_rest: Replace 'oob_url' with datamapper-native 'oob'
Kim Alvefur <zash@zash.se>
parents:
4534
diff
changeset
|
844 "description" : "The URL of the attached media file", |
a9e997d5eb94
mod_rest: Replace 'oob_url' with datamapper-native 'oob'
Kim Alvefur <zash@zash.se>
parents:
4534
diff
changeset
|
845 "example" : "https://media.example.net/thisfile.jpg", |
4523
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
846 "format" : "uri", |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
847 "type" : "string" |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
848 } |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
849 }, |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
850 "title" : "XEP-0066: Out of Band Data", |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
851 "type" : "object", |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
852 "xml" : { |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
853 "name" : "x", |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
854 "namespace" : "jabber:x:oob" |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
855 } |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
856 }, |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
857 "reactions" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
858 "properties" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
859 "id" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
860 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
861 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
862 "attribute" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
863 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
864 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
865 "reactions" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
866 "items" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
867 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
868 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
869 "name" : "reaction" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
870 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
871 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
872 "type" : "array", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
873 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
874 "name" : "reactions", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
875 "wrapped" : false |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
876 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
877 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
878 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
879 "title" : "XEP-0444: Message Reactions", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
880 "type" : "object", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
881 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
882 "namespace" : "urn:xmpp:reactions:0" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
883 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
884 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
885 "reference" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
886 "properties" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
887 "begin" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
888 "minimum" : 0, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
889 "type" : "integer", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
890 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
891 "attribute" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
892 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
893 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
894 "end" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
895 "minimum" : 0, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
896 "type" : "integer", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
897 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
898 "attribute" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
899 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
900 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
901 "type" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
902 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
903 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
904 "attribute" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
905 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
906 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
907 "uri" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
908 "format" : "uri", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
909 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
910 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
911 "attribute" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
912 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
913 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
914 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
915 "required" : [ |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
916 "type", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
917 "uri" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
918 ], |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
919 "title" : "XEP-0372: References", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
920 "type" : "object", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
921 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
922 "namespace" : "urn:xmpp:reference:0" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
923 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
924 }, |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
925 "replace" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
926 "description" : "For indicating that a message is a correction of the last sent message.", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
927 "title" : "XEP-0308: Last Message Correction", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
928 "type" : "string", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
929 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
930 "name" : "replace", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
931 "namespace" : "urn:xmpp:message-correct:0", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
932 "x_single_attribute" : "id" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
933 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
934 }, |
4840
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
935 "rsm" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
936 "$ref" : "#/_common/rsm" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
937 }, |
4534
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
938 "stanza_ids" : { |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
939 "items" : { |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
940 "properties" : { |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
941 "by" : { |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
942 "format" : "xmpp-jid", |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
943 "type" : "string", |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
944 "xml" : { |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
945 "attribute" : true |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
946 } |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
947 }, |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
948 "id" : { |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
949 "type" : "string", |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
950 "xml" : { |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
951 "attribute" : true |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
952 } |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
953 } |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
954 }, |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
955 "required" : [ |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
956 "id", |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
957 "by" |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
958 ], |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
959 "type" : "object", |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
960 "xml" : { |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
961 "name" : "stanza-id", |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
962 "namespace" : "urn:xmpp:sid:0" |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
963 } |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
964 }, |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
965 "title" : "XEP-0359: Unique and Stable Stanza IDs", |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
966 "type" : "array" |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
967 }, |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
968 "state" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
969 "description" : "Chat state notifications, e.g. \"is typing...\"", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
970 "enum" : [ |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
971 "active", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
972 "inactive", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
973 "gone", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
974 "composing", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
975 "paused" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
976 ], |
4531
60fe204b980f
mod_rest: Add a 'title' to XEP-0085 mapping (for documentation)
Kim Alvefur <zash@zash.se>
parents:
4530
diff
changeset
|
977 "title" : "XEP-0085: Chat State Notifications", |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
978 "type" : "string", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
979 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
980 "namespace" : "http://jabber.org/protocol/chatstates", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
981 "x_name_is_value" : true |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
982 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
983 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
984 "subject" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
985 "description" : "Subject of message or group chat", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
986 "example" : "Talking about stuff", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
987 "type" : "string" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
988 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
989 "thread" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
990 "description" : "Message thread identifier", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
991 "properties" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
992 "id" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
993 "type" : "string", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
994 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
995 "text" : true |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
996 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
997 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
998 "parent" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
999 "type" : "string", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1000 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1001 "attribute" : true |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1002 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1003 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1004 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1005 "type" : "object" |
4840
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1006 }, |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1007 "to" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1008 "$ref" : "#/_common/to" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1009 }, |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1010 "type" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1011 "$ref" : "#/_common/type" |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1012 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1013 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1014 "type" : "object", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1015 "xml" : { |
4841
f69c5a443156
mod_rest: Fix nested message stanzas in XEP-0297 containers
Kim Alvefur <zash@zash.se>
parents:
4840
diff
changeset
|
1016 "name" : "message", |
f69c5a443156
mod_rest: Fix nested message stanzas in XEP-0297 containers
Kim Alvefur <zash@zash.se>
parents:
4840
diff
changeset
|
1017 "namespace" : "jabber:client" |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1018 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1019 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1020 "presence" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1021 "properties" : { |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1022 "caps" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1023 "properties" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1024 "ext" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1025 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1026 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1027 "attribute" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1028 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1029 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1030 "hash" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1031 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1032 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1033 "attribute" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1034 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1035 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1036 "node" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1037 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1038 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1039 "attribute" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1040 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1041 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1042 "ver" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1043 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1044 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1045 "attribute" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1046 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1047 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1048 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1049 "title" : "XEP-0115: Entity Capabilities", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1050 "type" : "object", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1051 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1052 "name" : "c", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1053 "namespace" : "http://jabber.org/protocol/caps" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1054 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1055 }, |
4840
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1056 "dataform" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1057 "$ref" : "#/_common/dataform" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1058 }, |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1059 "delay" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1060 "$ref" : "#/_common/delay" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1061 }, |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1062 "from" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1063 "$ref" : "#/_common/from" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1064 }, |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1065 "id" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1066 "$ref" : "#/_common/id" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1067 }, |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1068 "idle_since" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1069 "format" : "date-time", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1070 "title" : "XEP-0319: Last User Interaction in Presence", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1071 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1072 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1073 "name" : "idle", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1074 "namespace" : "urn:xmpp:idle:1", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1075 "x_single_attribute" : "since" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1076 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1077 }, |
4840
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1078 "lang" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1079 "$ref" : "#/_common/lang" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1080 }, |
4936
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1081 "muc" : { |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1082 "properties" : { |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1083 "history" : { |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1084 "properties" : { |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1085 "maxchars" : { |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1086 "minimum" : 0, |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1087 "type" : "integer", |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1088 "xml" : { |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1089 "attribute" : true |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1090 } |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1091 }, |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1092 "maxstanzas" : { |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1093 "minimum" : 0, |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1094 "type" : "integer", |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1095 "xml" : { |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1096 "attribute" : true |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1097 } |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1098 }, |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1099 "seconds" : { |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1100 "minimum" : 0, |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1101 "type" : "integer", |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1102 "xml" : { |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1103 "attribute" : true |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1104 } |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1105 }, |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1106 "since" : { |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1107 "format" : "date-time", |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1108 "type" : "string", |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1109 "xml" : { |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1110 "attribute" : true |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1111 } |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1112 } |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1113 }, |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1114 "type" : "object" |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1115 } |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1116 }, |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1117 "type" : "object", |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1118 "xml" : { |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1119 "name" : "x", |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1120 "namespace" : "http://jabber.org/protocol/muc" |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1121 } |
a85efae90e21
mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents:
4917
diff
changeset
|
1122 }, |
4840
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1123 "nick" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1124 "$ref" : "#/_common/nick" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1125 }, |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1126 "priority" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1127 "description" : "Presence priority", |
4520
bd320ec2c2fc
mod_rest: Declare presence priority an integer in -128..127 per RFC6121
Kim Alvefur <zash@zash.se>
parents:
4519
diff
changeset
|
1128 "maximum" : 127, |
bd320ec2c2fc
mod_rest: Declare presence priority an integer in -128..127 per RFC6121
Kim Alvefur <zash@zash.se>
parents:
4519
diff
changeset
|
1129 "minimum" : -128, |
bd320ec2c2fc
mod_rest: Declare presence priority an integer in -128..127 per RFC6121
Kim Alvefur <zash@zash.se>
parents:
4519
diff
changeset
|
1130 "type" : "integer" |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1131 }, |
4840
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1132 "rsm" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1133 "$ref" : "#/_common/rsm" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1134 }, |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1135 "show" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1136 "description" : "indicator of availability, ie away or not", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1137 "enum" : [ |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1138 "away", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1139 "chat", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1140 "dnd", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1141 "xa" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1142 ], |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1143 "type" : "string" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1144 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1145 "status" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1146 "description" : "Textual status message.", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1147 "type" : "string" |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1148 }, |
4840
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1149 "to" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1150 "$ref" : "#/_common/to" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1151 }, |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1152 "type" : { |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1153 "$ref" : "#/_common/type" |
e9b7c8db3ebd
mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents:
4800
diff
changeset
|
1154 }, |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1155 "vcard_update" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1156 "properties" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1157 "photo" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1158 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1159 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1160 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1161 "title" : "XEP-0153: vCard-Based Avatars", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1162 "type" : "object", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1163 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1164 "name" : "x", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1165 "namespace" : "vcard-temp:x:update" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
1166 } |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1167 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1168 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1169 "type" : "object", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1170 "xml" : { |
4841
f69c5a443156
mod_rest: Fix nested message stanzas in XEP-0297 containers
Kim Alvefur <zash@zash.se>
parents:
4840
diff
changeset
|
1171 "name" : "presence", |
f69c5a443156
mod_rest: Fix nested message stanzas in XEP-0297 containers
Kim Alvefur <zash@zash.se>
parents:
4840
diff
changeset
|
1172 "namespace" : "jabber:client" |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1173 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1174 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1175 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1176 "type" : "object", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1177 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1178 "name" : "xmpp", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1179 "namespace" : "jabber:client" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1180 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1181 } |