comparison mod_rest/res/schema-xmpp.json @ 4740:beeacb25dea9

mod_rest: Add XEP-0004 mapping for future reuse For use with MAM and such
author Kim Alvefur <zash@zash.se>
date Thu, 04 Nov 2021 19:36:11 +0100
parents 755dd83e9214
children 3f2342eacb26
comparison
equal deleted inserted replaced
4739:fdd9e5d89d73 4740:beeacb25dea9
1 { 1 {
2 "_common" : { 2 "_common" : {
3 "dataform" : {
4 "properties" : {
5 "fields" : {
6 "items" : {
7 "properties" : {
8 "desc" : {
9 "type" : "string"
10 },
11 "label" : {
12 "type" : "string",
13 "xml" : {
14 "attribute" : true
15 }
16 },
17 "options" : {
18 "items" : {
19 "properties" : {
20 "label" : {
21 "type" : "string",
22 "xml" : {
23 "attribute" : true
24 }
25 },
26 "value" : {
27 "type" : "string"
28 }
29 },
30 "type" : "object",
31 "xml" : {
32 "name" : "option"
33 }
34 },
35 "type" : "array"
36 },
37 "required" : {
38 "type" : "boolean",
39 "xml" : {
40 "x_name_is_value" : true
41 }
42 },
43 "type" : {
44 "enum" : [
45 "boolean",
46 "fixed",
47 "hidden",
48 "jid-multi",
49 "jid-single",
50 "list-multi",
51 "list-single",
52 "text-multi",
53 "text-private",
54 "text-single"
55 ],
56 "type" : "string",
57 "xml" : {
58 "attribute" : true
59 }
60 },
61 "values" : {
62 "items" : {
63 "type" : "string",
64 "xml" : {
65 "name" : "value"
66 }
67 },
68 "type" : "array"
69 },
70 "var" : {
71 "type" : "string",
72 "xml" : {
73 "attribute" : true
74 }
75 }
76 },
77 "type" : "object",
78 "xml" : {
79 "name" : "field"
80 }
81 },
82 "type" : "array"
83 },
84 "instructions" : {
85 "type" : "string"
86 },
87 "title" : {
88 "type" : "string"
89 },
90 "type" : {
91 "enum" : [
92 "cancel",
93 "form",
94 "result",
95 "submit"
96 ],
97 "type" : "string",
98 "xml" : {
99 "attribute" : true
100 }
101 }
102 },
103 "title" : "XEP-0004: Data Forms",
104 "type" : "object",
105 "xml" : {
106 "name" : "x",
107 "namespace" : "jabber:x:data"
108 }
109 },
3 "delay" : { 110 "delay" : {
4 "format" : "date-time", 111 "format" : "date-time",
5 "title" : "XEP-0203: Delayed Delivery", 112 "title" : "XEP-0203: Delayed Delivery",
6 "type" : "string", 113 "type" : "string",
7 "xml" : { 114 "xml" : {