annotate mod_rest/res/schema-xmpp.json @ 5647:d4b97eaeb235

mod_muc_moderation: Mention that it works with mod_storage_xmlarchive (thanks Menel)
author Kim Alvefur <zash@zash.se>
date Mon, 11 Sep 2023 18:03:18 +0200
parents 3276750332ea
children bdcb61275afe
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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" : {
5528
ce6e071d61a0 mod_rest: Merge some common properties between openapi and schema
Kim Alvefur <zash@zash.se>
parents: 5119
diff changeset
111 "description" : "Timestamp of when a stanza was delayed, in ISO 8601 / XEP-0082 format.",
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
112 "format" : "date-time",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
113 "title" : "XEP-0203: Delayed Delivery",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
114 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
115 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
116 "name" : "delay",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
117 "namespace" : "urn:xmpp:delay",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
118 "x_single_attribute" : "stamp"
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 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
121 "from" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
122 "description" : "the sender of the stanza",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
123 "example" : "bob@example.net",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
124 "format" : "xmpp-jid",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
125 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
126 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
127 "attribute" : true
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 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
130 "id" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
131 "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
132 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
133 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
134 "attribute" : true
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 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
137 "lang" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
138 "description" : "Language code",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
139 "example" : "en",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
140 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
141 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
142 "attribute" : true,
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
143 "prefix" : "xml"
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 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
146 "nick" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
147 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
148 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
149 "name" : "nick",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
150 "namespace" : "http://jabber.org/protocol/nick"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
151 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
152 },
4917
3dc8e329d233 mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents: 4889
diff changeset
153 "payload" : {
3dc8e329d233 mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents: 4889
diff changeset
154 "properties" : {
3dc8e329d233 mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents: 4889
diff changeset
155 "data" : {
3dc8e329d233 mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents: 4889
diff changeset
156 "format" : "json",
3dc8e329d233 mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents: 4889
diff changeset
157 "type" : "string",
3dc8e329d233 mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents: 4889
diff changeset
158 "xml" : {
3dc8e329d233 mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents: 4889
diff changeset
159 "text" : true
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 },
3dc8e329d233 mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents: 4889
diff changeset
162 "datatype" : {
3dc8e329d233 mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents: 4889
diff changeset
163 "type" : "string",
3dc8e329d233 mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents: 4889
diff changeset
164 "xml" : {
3dc8e329d233 mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents: 4889
diff changeset
165 "attribute" : true
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 },
3dc8e329d233 mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents: 4889
diff changeset
169 "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
170 "type" : "object",
3dc8e329d233 mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents: 4889
diff changeset
171 "xml" : {
3dc8e329d233 mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents: 4889
diff changeset
172 "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
173 }
3dc8e329d233 mod_rest: Move most of XEP-0432 handling into JSON mapping schema
Kim Alvefur <zash@zash.se>
parents: 4889
diff changeset
174 },
4741
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
175 "rsm" : {
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
176 "properties" : {
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
177 "after" : {
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
178 "type" : "string"
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
179 },
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
180 "before" : {
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
181 "type" : "string"
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
182 },
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
183 "count" : {
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
184 "type" : "integer"
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
185 },
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
186 "first" : {
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
187 "type" : "string"
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
188 },
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
189 "index" : {
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
190 "type" : "integer"
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
191 },
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
192 "last" : {
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
193 "type" : "string"
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
194 },
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
195 "max" : {
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
196 "type" : "integer"
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
197 }
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
198 },
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
199 "title" : "XEP-0059: Result Set Management",
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
200 "type" : "object",
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
201 "xml" : {
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
202 "name" : "set",
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
203 "namespace" : "http://jabber.org/protocol/rsm"
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
204 }
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
205 },
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
206 "to" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
207 "description" : "the intended recipient for the stanza",
5528
ce6e071d61a0 mod_rest: Merge some common properties between openapi and schema
Kim Alvefur <zash@zash.se>
parents: 5119
diff changeset
208 "example" : "alice@example.com",
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
209 "format" : "xmpp-jid",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
210 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
211 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
212 "attribute" : true
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 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
215 "type" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
216 "description" : "Stanza type",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
217 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
218 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
219 "attribute" : true
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 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
223 "properties" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
224 "iq" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
225 "properties" : {
4742
b7df2c61a144 mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents: 4741
diff changeset
226 "archive" : {
b7df2c61a144 mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents: 4741
diff changeset
227 "properties" : {
b7df2c61a144 mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents: 4741
diff changeset
228 "form" : {
4840
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
229 "$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
230 },
b7df2c61a144 mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents: 4741
diff changeset
231 "page" : {
4840
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
232 "$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
233 },
b7df2c61a144 mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents: 4741
diff changeset
234 "queryid" : {
b7df2c61a144 mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents: 4741
diff changeset
235 "type" : "string",
b7df2c61a144 mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents: 4741
diff changeset
236 "xml" : {
b7df2c61a144 mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents: 4741
diff changeset
237 "attribute" : true
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 },
b7df2c61a144 mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents: 4741
diff changeset
241 "type" : "object",
b7df2c61a144 mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents: 4741
diff changeset
242 "xml" : {
b7df2c61a144 mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents: 4741
diff changeset
243 "name" : "query",
b7df2c61a144 mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents: 4741
diff changeset
244 "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
245 }
b7df2c61a144 mod_rest: Add support for mapping of XEP-0313 query iqs
Kim Alvefur <zash@zash.se>
parents: 4741
diff changeset
246 },
4840
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
247 "dataform" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
248 "$ref" : "#/_common/dataform"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
249 },
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
250 "delay" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
251 "$ref" : "#/_common/delay"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
252 },
4726
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
253 "extdisco" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
254 "properties" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
255 "services" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
256 "items" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
257 "properties" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
258 "expires" : {
4937
d63657a85fb4 mod_rest: Fix 'format' property in schema
Kim Alvefur <zash@zash.se>
parents: 4936
diff changeset
259 "format" : "date-time",
4726
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
260 "type" : "string",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
261 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
262 "attribute" : true
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 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
265 "host" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
266 "type" : "string",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
267 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
268 "attribute" : true
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 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
271 "name" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
272 "type" : "string",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
273 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
274 "attribute" : true
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 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
277 "password" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
278 "type" : "string",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
279 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
280 "attribute" : true
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 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
283 "port" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
284 "type" : "integer",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
285 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
286 "attribute" : true
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 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
289 "restricted" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
290 "type" : "boolean",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
291 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
292 "attribute" : true
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 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
295 "transport" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
296 "type" : "string",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
297 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
298 "attribute" : true
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 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
301 "type" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
302 "type" : "string",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
303 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
304 "attribute" : true
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 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
307 "username" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
308 "type" : "string",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
309 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
310 "attribute" : true
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 }
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
313 },
4800
1e2f53fb2099 mod_rest: Fix mistaken way of specifying required fields in XEP-0215 map
Kim Alvefur <zash@zash.se>
parents: 4748
diff changeset
314 "required" : [
1e2f53fb2099 mod_rest: Fix mistaken way of specifying required fields in XEP-0215 map
Kim Alvefur <zash@zash.se>
parents: 4748
diff changeset
315 "type",
1e2f53fb2099 mod_rest: Fix mistaken way of specifying required fields in XEP-0215 map
Kim Alvefur <zash@zash.se>
parents: 4748
diff changeset
316 "host"
1e2f53fb2099 mod_rest: Fix mistaken way of specifying required fields in XEP-0215 map
Kim Alvefur <zash@zash.se>
parents: 4748
diff changeset
317 ],
4726
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
318 "type" : "object",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
319 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
320 "name" : "service"
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 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
323 "type" : "array"
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
324 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
325 "type" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
326 "type" : "string",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
327 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
328 "attribute" : true
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 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
332 "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
333 "type" : "object",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
334 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
335 "name" : "services",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
336 "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
337 }
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
338 },
4840
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
339 "from" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
340 "$ref" : "#/_common/from"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
341 },
4720
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
342 "gateway" : {
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
343 "properties" : {
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
344 "desc" : {
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
345 "type" : "text"
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
346 },
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
347 "jid" : {
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
348 "type" : "string"
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
349 },
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
350 "prompt" : {
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
351 "type" : "string"
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 },
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
354 "title" : "XEP-0100: Gateway Interaction",
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
355 "type" : "object",
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
356 "xml" : {
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
357 "name" : "query",
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
358 "namespace" : "jabber:iq:gateway"
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
359 }
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
360 },
4840
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
361 "id" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
362 "$ref" : "#/_common/id"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
363 },
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
364 "lang" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
365 "$ref" : "#/_common/lang"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
366 },
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
367 "lastactivity" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
368 "properties" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
369 "seconds" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
370 "minimum" : 0,
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
371 "type" : "integer",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
372 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
373 "attribute" : true
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 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
376 "status" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
377 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
378 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
379 "text" : true
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 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
383 "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
384 "type" : "object",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
385 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
386 "name" : "query",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
387 "namespace" : "jabber:iq:last"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
388 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
389 },
4840
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
390 "nick" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
391 "$ref" : "#/_common/nick"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
392 },
4523
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
393 "oob" : {
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
394 "properties" : {
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
395 "desc" : {
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
396 "type" : "string"
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
397 },
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
398 "url" : {
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
399 "format" : "uri",
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
400 "type" : "string"
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 },
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
403 "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
404 "type" : "object",
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
405 "xml" : {
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
406 "name" : "query",
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
407 "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
408 }
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
409 },
5119
048e339706ba mod_rest: Remove manual reference expansion in schema
Kim Alvefur <zash@zash.se>
parents: 5080
diff changeset
410 "payload" : {
048e339706ba mod_rest: Remove manual reference expansion in schema
Kim Alvefur <zash@zash.se>
parents: 5080
diff changeset
411 "$ref" : "#/_common/payload"
048e339706ba mod_rest: Remove manual reference expansion in schema
Kim Alvefur <zash@zash.se>
parents: 5080
diff changeset
412 },
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
413 "ping" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
414 "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
415 "enum" : [
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
416 true
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
417 ],
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
418 "title" : "XEP-0199: XMPP Ping",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
419 "type" : "boolean",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
420 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
421 "name" : "ping",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
422 "namespace" : "urn:xmpp:ping",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
423 "x_name_is_value" : true
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
424 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
425 },
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
426 "register" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
427 "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
428 "properties" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
429 "address" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
430 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
431 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
432 "city" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
433 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
434 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
435 "date" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
436 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
437 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
438 "email" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
439 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
440 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
441 "first" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
442 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
443 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
444 "instructions" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
445 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
446 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
447 "key" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
448 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
449 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
450 "last" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
451 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
452 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
453 "misc" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
454 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
455 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
456 "name" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
457 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
458 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
459 "nick" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
460 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
461 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
462 "password" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
463 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
464 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
465 "phone" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
466 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
467 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
468 "registered" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
469 "type" : "boolean",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
470 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
471 "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
472 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
473 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
474 "remove" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
475 "type" : "boolean",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
476 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
477 "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
478 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
479 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
480 "state" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
481 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
482 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
483 "text" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
484 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
485 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
486 "url" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
487 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
488 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
489 "username" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
490 "type" : "string"
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 "zip" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
493 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
494 }
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 "required" : [
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
497 "username",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
498 "password"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
499 ],
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
500 "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
501 "type" : "object",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
502 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
503 "name" : "query",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
504 "namespace" : "jabber:iq:register"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
505 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
506 },
4747
566e54a07f54 mod_rest: Map the XEP-0313 <fin> element to make paging work
Kim Alvefur <zash@zash.se>
parents: 4742
diff changeset
507 "result" : {
566e54a07f54 mod_rest: Map the XEP-0313 <fin> element to make paging work
Kim Alvefur <zash@zash.se>
parents: 4742
diff changeset
508 "properties" : {
566e54a07f54 mod_rest: Map the XEP-0313 <fin> element to make paging work
Kim Alvefur <zash@zash.se>
parents: 4742
diff changeset
509 "page" : {
4840
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
510 "$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
511 }
566e54a07f54 mod_rest: Map the XEP-0313 <fin> element to make paging work
Kim Alvefur <zash@zash.se>
parents: 4742
diff changeset
512 },
566e54a07f54 mod_rest: Map the XEP-0313 <fin> element to make paging work
Kim Alvefur <zash@zash.se>
parents: 4742
diff changeset
513 "type" : "object",
566e54a07f54 mod_rest: Map the XEP-0313 <fin> element to make paging work
Kim Alvefur <zash@zash.se>
parents: 4742
diff changeset
514 "xml" : {
566e54a07f54 mod_rest: Map the XEP-0313 <fin> element to make paging work
Kim Alvefur <zash@zash.se>
parents: 4742
diff changeset
515 "name" : "fin",
566e54a07f54 mod_rest: Map the XEP-0313 <fin> element to make paging work
Kim Alvefur <zash@zash.se>
parents: 4742
diff changeset
516 "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
517 }
566e54a07f54 mod_rest: Map the XEP-0313 <fin> element to make paging work
Kim Alvefur <zash@zash.se>
parents: 4742
diff changeset
518 },
4840
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
519 "rsm" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
520 "$ref" : "#/_common/rsm"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
521 },
4519
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
522 "stats" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
523 "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
524 "items" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
525 "properties" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
526 "name" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
527 "type" : "string",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
528 "xml" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
529 "attribute" : true
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
530 }
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
531 },
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
532 "unit" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
533 "type" : "string",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
534 "xml" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
535 "attribute" : true
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
536 }
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
537 },
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
538 "value" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
539 "type" : "number",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
540 "xml" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
541 "attribute" : true
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
542 }
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
543 }
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 "type" : "object",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
546 "xml" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
547 "name" : "stat"
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
548 }
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
549 },
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
550 "title" : "XEP-0039: Statistics Gathering",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
551 "type" : "array",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
552 "xml" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
553 "name" : "query",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
554 "namespace" : "http://jabber.org/protocol/stats",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
555 "wrapped" : true
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
556 }
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
557 },
4840
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
558 "to" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
559 "$ref" : "#/_common/to"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
560 },
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
561 "type" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
562 "$ref" : "#/_common/type"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
563 },
4889
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
564 "upload_request" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
565 "properties" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
566 "content-type" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
567 "xml" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
568 "attribute" : true,
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
569 "name" : "content-type"
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
570 }
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
571 },
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
572 "filename" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
573 "type" : "string",
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
574 "xml" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
575 "attribute" : true
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
576 }
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
577 },
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
578 "size" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
579 "type" : "integer",
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
580 "xml" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
581 "attribute" : true
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
582 }
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
583 }
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 "required" : [
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
586 "filename",
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
587 "size"
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
588 ],
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
589 "type" : "object",
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
590 "xml" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
591 "name" : "request",
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
592 "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
593 }
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
594 },
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
595 "upload_slot" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
596 "properties" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
597 "get" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
598 "properties" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
599 "url" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
600 "format" : "uri",
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
601 "type" : "string",
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
602 "xml" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
603 "attribute" : true
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 }
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
606 },
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
607 "type" : "object"
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
608 },
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
609 "put" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
610 "properties" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
611 "headers" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
612 "items" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
613 "properties" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
614 "name" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
615 "enum" : [
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
616 "Authorization",
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
617 "Cookie",
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
618 "Expires"
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 "type" : "string",
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
621 "xml" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
622 "attribute" : true
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
623 }
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
624 },
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
625 "value" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
626 "type" : "string",
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
627 "xml" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
628 "text" : true
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
629 }
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
630 }
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 "required" : [
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
633 "name",
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
634 "value"
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 "type" : "object",
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
637 "xml" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
638 "name" : "header"
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
639 }
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
640 },
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
641 "type" : "array"
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
642 },
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
643 "url" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
644 "format" : "uri",
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
645 "type" : "string",
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
646 "xml" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
647 "attribute" : true
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 },
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
651 "type" : "object"
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
652 }
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
653 },
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
654 "type" : "object",
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
655 "xml" : {
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
656 "name" : "slot",
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
657 "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
658 }
52522c71ad1a mod_rest: Add XEP-0363 HTTP Upload to schemas
Kim Alvefur <zash@zash.se>
parents: 4841
diff changeset
659 },
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
660 "version" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
661 "description" : "Ask about software version information",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
662 "properties" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
663 "name" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
664 "example" : "My Software",
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 "os" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
668 "example" : "Linux",
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 "version" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
672 "example" : "1.0.0",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
673 "type" : "string"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
674 }
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 "required" : [
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
677 "name",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
678 "version"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
679 ],
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
680 "title" : "XEP-0092: Software Version",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
681 "type" : "object",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
682 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
683 "name" : "query",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
684 "namespace" : "jabber:iq:version"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
685 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
686 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
687 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
688 "type" : "object",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
689 "xml" : {
4841
f69c5a443156 mod_rest: Fix nested message stanzas in XEP-0297 containers
Kim Alvefur <zash@zash.se>
parents: 4840
diff changeset
690 "name" : "iq",
f69c5a443156 mod_rest: Fix nested message stanzas in XEP-0297 containers
Kim Alvefur <zash@zash.se>
parents: 4840
diff changeset
691 "namespace" : "jabber:client"
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
692 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
693 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
694 "message" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
695 "properties" : {
4733
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
696 "archive" : {
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
697 "properties" : {
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
698 "forward" : {
4840
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
699 "$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
700 },
5558
3276750332ea mod_rest: Map the archive-id attribute in MAM result items
Kim Alvefur <zash@zash.se>
parents: 5528
diff changeset
701 "id" : {
3276750332ea mod_rest: Map the archive-id attribute in MAM result items
Kim Alvefur <zash@zash.se>
parents: 5528
diff changeset
702 "type" : "string",
3276750332ea mod_rest: Map the archive-id attribute in MAM result items
Kim Alvefur <zash@zash.se>
parents: 5528
diff changeset
703 "xml" : {
3276750332ea mod_rest: Map the archive-id attribute in MAM result items
Kim Alvefur <zash@zash.se>
parents: 5528
diff changeset
704 "attribute" : true
3276750332ea mod_rest: Map the archive-id attribute in MAM result items
Kim Alvefur <zash@zash.se>
parents: 5528
diff changeset
705 }
3276750332ea mod_rest: Map the archive-id attribute in MAM result items
Kim Alvefur <zash@zash.se>
parents: 5528
diff changeset
706 },
4733
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
707 "queryid" : {
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
708 "type" : "string",
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
709 "xml" : {
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
710 "attribute" : true
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
711 }
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
712 }
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
713 },
4958
2735e29cf94b mod_rest: Add some descriptive details to schema
Kim Alvefur <zash@zash.se>
parents: 4950
diff changeset
714 "title" : "XEP-0313: Message Archive Management",
4733
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
715 "type" : "object",
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
716 "xml" : {
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
717 "name" : "result",
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
718 "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
719 }
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
720 },
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
721 "attach_to" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
722 "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
723 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
724 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
725 "name" : "attach-to",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
726 "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
727 "x_single_attribute" : "id"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
728 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
729 },
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
730 "body" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
731 "description" : "Human-readable chat message",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
732 "example" : "Hello, World!",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
733 "type" : "string"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
734 },
4840
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
735 "dataform" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
736 "$ref" : "#/_common/dataform"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
737 },
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
738 "delay" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
739 "$ref" : "#/_common/delay"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
740 },
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
741 "displayed" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
742 "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
743 "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
744 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
745 "xml" : {
5080
ce9b836f66d5 mod_rest: Fix JSON conversion of 'displayed' chat marker
Kim Alvefur <zash@zash.se>
parents: 4985
diff changeset
746 "namespace" : "urn:xmpp:chat-markers:0",
ce9b836f66d5 mod_rest: Fix JSON conversion of 'displayed' chat marker
Kim Alvefur <zash@zash.se>
parents: 4985
diff changeset
747 "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
748 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
749 },
4950
8f625a7dc957 mod_rest: Add mapping of XEP-0380: Explicit Message Encryption
Kim Alvefur <zash@zash.se>
parents: 4937
diff changeset
750 "encryption" : {
8f625a7dc957 mod_rest: Add mapping of XEP-0380: Explicit Message Encryption
Kim Alvefur <zash@zash.se>
parents: 4937
diff changeset
751 "title" : "XEP-0380: Explicit Message Encryption",
8f625a7dc957 mod_rest: Add mapping of XEP-0380: Explicit Message Encryption
Kim Alvefur <zash@zash.se>
parents: 4937
diff changeset
752 "type" : "string",
8f625a7dc957 mod_rest: Add mapping of XEP-0380: Explicit Message Encryption
Kim Alvefur <zash@zash.se>
parents: 4937
diff changeset
753 "xml" : {
8f625a7dc957 mod_rest: Add mapping of XEP-0380: Explicit Message Encryption
Kim Alvefur <zash@zash.se>
parents: 4937
diff changeset
754 "name" : "encryption",
8f625a7dc957 mod_rest: Add mapping of XEP-0380: Explicit Message Encryption
Kim Alvefur <zash@zash.se>
parents: 4937
diff changeset
755 "namespace" : "urn:xmpp:eme:0",
8f625a7dc957 mod_rest: Add mapping of XEP-0380: Explicit Message Encryption
Kim Alvefur <zash@zash.se>
parents: 4937
diff changeset
756 "x_single_attribute" : "namespace"
8f625a7dc957 mod_rest: Add mapping of XEP-0380: Explicit Message Encryption
Kim Alvefur <zash@zash.se>
parents: 4937
diff changeset
757 }
8f625a7dc957 mod_rest: Add mapping of XEP-0380: Explicit Message Encryption
Kim Alvefur <zash@zash.se>
parents: 4937
diff changeset
758 },
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
759 "fallback" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
760 "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
761 "type" : "boolean",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
762 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
763 "name" : "fallback",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
764 "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
765 "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
766 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
767 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
768 "forwarded" : {
4732
607cac9b9393 mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents: 4726
diff changeset
769 "properties" : {
607cac9b9393 mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents: 4726
diff changeset
770 "delay" : {
4840
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
771 "$ref" : "#/_common/delay"
4732
607cac9b9393 mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents: 4726
diff changeset
772 },
607cac9b9393 mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents: 4726
diff changeset
773 "message" : {
4841
f69c5a443156 mod_rest: Fix nested message stanzas in XEP-0297 containers
Kim Alvefur <zash@zash.se>
parents: 4840
diff changeset
774 "$ref" : "#/properties/message"
4732
607cac9b9393 mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents: 4726
diff changeset
775 }
607cac9b9393 mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents: 4726
diff changeset
776 },
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
777 "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
778 "type" : "object",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
779 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
780 "name" : "forwarded",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
781 "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
782 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
783 },
4840
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
784 "from" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
785 "$ref" : "#/_common/from"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
786 },
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
787 "id" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
788 "$ref" : "#/_common/id"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
789 },
4549
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
790 "invite" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
791 "properties" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
792 "continue" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
793 "type" : "boolean",
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
794 "xml" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
795 "attribute" : true
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
796 }
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
797 },
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
798 "jid" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
799 "format" : "xmpp-jid",
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
800 "type" : "string",
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
801 "xml" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
802 "attribute" : true
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
803 }
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
804 },
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
805 "password" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
806 "type" : "string",
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
807 "xml" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
808 "attribute" : true
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
809 }
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
810 },
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
811 "reason" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
812 "type" : "string",
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
813 "xml" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
814 "attribute" : true
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
815 }
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
816 },
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
817 "thread" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
818 "type" : "string",
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
819 "xml" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
820 "attribute" : true
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
821 }
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
822 }
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
823 },
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
824 "required" : [
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
825 "jid"
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
826 ],
4633
63c91f2a86e5 mod_rest: Fix typo (thanks codespell)
Kim Alvefur <zash@zash.se>
parents: 4549
diff changeset
827 "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
828 "type" : "object",
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
829 "xml" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
830 "name" : "x",
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
831 "namespace" : "jabber:x:conference"
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
832 }
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
833 },
4840
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
834 "lang" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
835 "$ref" : "#/_common/lang"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
836 },
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
837 "markable" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
838 "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
839 "type" : "boolean",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
840 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
841 "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
842 "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
843 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
844 },
4840
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
845 "nick" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
846 "$ref" : "#/_common/nick"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
847 },
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
848 "occupant_id" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
849 "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
850 "type" : "string",
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
851 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
852 "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
853 "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
854 "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
855 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
856 },
4523
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
857 "oob" : {
4547
a9e997d5eb94 mod_rest: Replace 'oob_url' with datamapper-native 'oob'
Kim Alvefur <zash@zash.se>
parents: 4534
diff changeset
858 "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
859 "properties" : {
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
860 "desc" : {
4547
a9e997d5eb94 mod_rest: Replace 'oob_url' with datamapper-native 'oob'
Kim Alvefur <zash@zash.se>
parents: 4534
diff changeset
861 "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
862 "type" : "string"
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
863 },
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
864 "url" : {
4547
a9e997d5eb94 mod_rest: Replace 'oob_url' with datamapper-native 'oob'
Kim Alvefur <zash@zash.se>
parents: 4534
diff changeset
865 "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
866 "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
867 "format" : "uri",
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
868 "type" : "string"
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
869 }
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
870 },
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
871 "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
872 "type" : "object",
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
873 "xml" : {
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
874 "name" : "x",
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
875 "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
876 }
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
877 },
5119
048e339706ba mod_rest: Remove manual reference expansion in schema
Kim Alvefur <zash@zash.se>
parents: 5080
diff changeset
878 "payload" : {
048e339706ba mod_rest: Remove manual reference expansion in schema
Kim Alvefur <zash@zash.se>
parents: 5080
diff changeset
879 "$ref" : "#/_common/payload"
048e339706ba mod_rest: Remove manual reference expansion in schema
Kim Alvefur <zash@zash.se>
parents: 5080
diff changeset
880 },
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
881 "reactions" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
882 "properties" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
883 "id" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
884 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
885 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
886 "attribute" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
887 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
888 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
889 "reactions" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
890 "items" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
891 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
892 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
893 "name" : "reaction"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
894 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
895 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
896 "type" : "array",
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 "name" : "reactions",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
899 "wrapped" : false
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 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
902 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
903 "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
904 "type" : "object",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
905 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
906 "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
907 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
908 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
909 "reference" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
910 "properties" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
911 "begin" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
912 "minimum" : 0,
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
913 "type" : "integer",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
914 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
915 "attribute" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
916 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
917 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
918 "end" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
919 "minimum" : 0,
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
920 "type" : "integer",
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 "attribute" : true
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 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
925 "type" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
926 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
927 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
928 "attribute" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
929 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
930 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
931 "uri" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
932 "format" : "uri",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
933 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
934 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
935 "attribute" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
936 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
937 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
938 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
939 "required" : [
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
940 "type",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
941 "uri"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
942 ],
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
943 "title" : "XEP-0372: References",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
944 "type" : "object",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
945 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
946 "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
947 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
948 },
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
949 "replace" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
950 "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
951 "title" : "XEP-0308: Last Message Correction",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
952 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
953 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
954 "name" : "replace",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
955 "namespace" : "urn:xmpp:message-correct:0",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
956 "x_single_attribute" : "id"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
957 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
958 },
4985
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
959 "reply" : {
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
960 "description" : "Reference a message being replied to",
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
961 "properties" : {
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
962 "id" : {
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
963 "type" : "string",
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
964 "xml" : {
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
965 "attribute" : true
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
966 }
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
967 },
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
968 "to" : {
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
969 "type" : "string",
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
970 "xml" : {
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
971 "attribute" : true
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
972 }
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
973 }
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
974 },
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
975 "title" : "XEP-0461: Message Replies",
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
976 "type" : "object",
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
977 "xml" : {
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
978 "name" : "reply",
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
979 "namespace" : "urn:xmpp:reply:0"
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
980 }
bade04ef0a22 mod_rest: Add JSON mapping for XEP-0461: Message Replies
Kim Alvefur <zash@zash.se>
parents: 4958
diff changeset
981 },
4840
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
982 "rsm" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
983 "$ref" : "#/_common/rsm"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
984 },
4534
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
985 "stanza_ids" : {
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
986 "items" : {
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
987 "properties" : {
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
988 "by" : {
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
989 "format" : "xmpp-jid",
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
990 "type" : "string",
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
991 "xml" : {
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
992 "attribute" : true
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
993 }
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
994 },
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
995 "id" : {
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
996 "type" : "string",
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
997 "xml" : {
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
998 "attribute" : true
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
999 }
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
1000 }
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
1001 },
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
1002 "required" : [
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
1003 "id",
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
1004 "by"
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
1005 ],
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
1006 "type" : "object",
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
1007 "xml" : {
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
1008 "name" : "stanza-id",
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
1009 "namespace" : "urn:xmpp:sid:0"
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
1010 }
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
1011 },
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
1012 "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
1013 "type" : "array"
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
1014 },
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1015 "state" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1016 "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
1017 "enum" : [
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1018 "active",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1019 "inactive",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1020 "gone",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1021 "composing",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1022 "paused"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1023 ],
4531
60fe204b980f mod_rest: Add a 'title' to XEP-0085 mapping (for documentation)
Kim Alvefur <zash@zash.se>
parents: 4530
diff changeset
1024 "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
1025 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1026 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1027 "namespace" : "http://jabber.org/protocol/chatstates",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1028 "x_name_is_value" : true
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1029 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1030 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1031 "subject" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1032 "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
1033 "example" : "Talking about stuff",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1034 "type" : "string"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1035 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1036 "thread" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1037 "description" : "Message thread identifier",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1038 "properties" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1039 "id" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1040 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1041 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1042 "text" : true
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1043 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1044 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1045 "parent" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1046 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1047 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1048 "attribute" : true
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1049 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1050 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1051 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1052 "type" : "object"
4840
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1053 },
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1054 "to" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1055 "$ref" : "#/_common/to"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1056 },
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1057 "type" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1058 "$ref" : "#/_common/type"
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1059 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1060 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1061 "type" : "object",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1062 "xml" : {
4841
f69c5a443156 mod_rest: Fix nested message stanzas in XEP-0297 containers
Kim Alvefur <zash@zash.se>
parents: 4840
diff changeset
1063 "name" : "message",
f69c5a443156 mod_rest: Fix nested message stanzas in XEP-0297 containers
Kim Alvefur <zash@zash.se>
parents: 4840
diff changeset
1064 "namespace" : "jabber:client"
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1065 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1066 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1067 "presence" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1068 "properties" : {
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1069 "caps" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1070 "properties" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1071 "ext" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1072 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1073 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1074 "attribute" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1075 }
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 "hash" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1078 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1079 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1080 "attribute" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1081 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1082 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1083 "node" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1084 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1085 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1086 "attribute" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1087 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1088 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1089 "ver" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1090 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1091 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1092 "attribute" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1093 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1094 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1095 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1096 "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
1097 "type" : "object",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1098 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1099 "name" : "c",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1100 "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
1101 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1102 },
4840
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1103 "dataform" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1104 "$ref" : "#/_common/dataform"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1105 },
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1106 "delay" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1107 "$ref" : "#/_common/delay"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1108 },
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1109 "from" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1110 "$ref" : "#/_common/from"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1111 },
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1112 "id" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1113 "$ref" : "#/_common/id"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1114 },
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1115 "idle_since" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1116 "format" : "date-time",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1117 "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
1118 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1119 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1120 "name" : "idle",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1121 "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
1122 "x_single_attribute" : "since"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1123 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1124 },
4840
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1125 "lang" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1126 "$ref" : "#/_common/lang"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1127 },
4936
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1128 "muc" : {
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1129 "properties" : {
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1130 "history" : {
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1131 "properties" : {
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1132 "maxchars" : {
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1133 "minimum" : 0,
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1134 "type" : "integer",
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1135 "xml" : {
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1136 "attribute" : true
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1137 }
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1138 },
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1139 "maxstanzas" : {
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1140 "minimum" : 0,
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1141 "type" : "integer",
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1142 "xml" : {
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1143 "attribute" : true
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1144 }
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1145 },
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1146 "seconds" : {
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1147 "minimum" : 0,
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1148 "type" : "integer",
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1149 "xml" : {
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1150 "attribute" : true
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1151 }
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1152 },
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1153 "since" : {
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1154 "format" : "date-time",
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1155 "type" : "string",
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1156 "xml" : {
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1157 "attribute" : true
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1158 }
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1159 }
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1160 },
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1161 "type" : "object"
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1162 }
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1163 },
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1164 "type" : "object",
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1165 "xml" : {
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1166 "name" : "x",
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1167 "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
1168 }
a85efae90e21 mod_rest: Expand mapping of XEP-0045 join stanza
Kim Alvefur <zash@zash.se>
parents: 4917
diff changeset
1169 },
4840
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1170 "nick" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1171 "$ref" : "#/_common/nick"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1172 },
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1173 "priority" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1174 "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
1175 "maximum" : 127,
bd320ec2c2fc mod_rest: Declare presence priority an integer in -128..127 per RFC6121
Kim Alvefur <zash@zash.se>
parents: 4519
diff changeset
1176 "minimum" : -128,
bd320ec2c2fc mod_rest: Declare presence priority an integer in -128..127 per RFC6121
Kim Alvefur <zash@zash.se>
parents: 4519
diff changeset
1177 "type" : "integer"
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1178 },
4840
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1179 "rsm" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1180 "$ref" : "#/_common/rsm"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1181 },
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1182 "show" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1183 "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
1184 "enum" : [
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1185 "away",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1186 "chat",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1187 "dnd",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1188 "xa"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1189 ],
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1190 "type" : "string"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1191 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1192 "status" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1193 "description" : "Textual status message.",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1194 "type" : "string"
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1195 },
4840
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1196 "to" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1197 "$ref" : "#/_common/to"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1198 },
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1199 "type" : {
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1200 "$ref" : "#/_common/type"
e9b7c8db3ebd mod_rest: Fixup internal schema references for correctness
Kim Alvefur <zash@zash.se>
parents: 4800
diff changeset
1201 },
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1202 "vcard_update" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1203 "properties" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1204 "photo" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1205 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1206 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1207 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1208 "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
1209 "type" : "object",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1210 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1211 "name" : "x",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
1212 "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
1213 }
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1214 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1215 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1216 "type" : "object",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1217 "xml" : {
4841
f69c5a443156 mod_rest: Fix nested message stanzas in XEP-0297 containers
Kim Alvefur <zash@zash.se>
parents: 4840
diff changeset
1218 "name" : "presence",
f69c5a443156 mod_rest: Fix nested message stanzas in XEP-0297 containers
Kim Alvefur <zash@zash.se>
parents: 4840
diff changeset
1219 "namespace" : "jabber:client"
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1220 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1221 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1222 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1223 "type" : "object",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1224 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1225 "name" : "xmpp",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1226 "namespace" : "jabber:client"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1227 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1228 }