Mercurial > prosody-modules
comparison mod_rest/res/schema-xmpp.json @ 4917:3dc8e329d233
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
The pre- and post-processing is still needed to encode/decode the JSON
since util.datamapper can't (currently) do this.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 07 Apr 2022 15:39:57 +0200 |
parents | 52522c71ad1a |
children | a85efae90e21 |
comparison
equal
deleted
inserted
replaced
4916:1d231fb827d3 | 4917:3dc8e329d233 |
---|---|
145 "nick" : { | 145 "nick" : { |
146 "type" : "string", | 146 "type" : "string", |
147 "xml" : { | 147 "xml" : { |
148 "name" : "nick", | 148 "name" : "nick", |
149 "namespace" : "http://jabber.org/protocol/nick" | 149 "namespace" : "http://jabber.org/protocol/nick" |
150 } | |
151 }, | |
152 "payload" : { | |
153 "properties" : { | |
154 "data" : { | |
155 "format" : "json", | |
156 "type" : "string", | |
157 "xml" : { | |
158 "text" : true | |
159 } | |
160 }, | |
161 "datatype" : { | |
162 "type" : "string", | |
163 "xml" : { | |
164 "attribute" : true | |
165 } | |
166 } | |
167 }, | |
168 "title" : "XEP-0432: Simple JSON Messaging", | |
169 "type" : "object", | |
170 "xml" : { | |
171 "namespace" : "urn:xmpp:json-msg:0" | |
150 } | 172 } |
151 }, | 173 }, |
152 "rsm" : { | 174 "rsm" : { |
153 "properties" : { | 175 "properties" : { |
154 "after" : { | 176 "after" : { |