Mercurial > prosody-modules
diff mod_rest/res/schema-xmpp.json @ 4841:f69c5a443156
mod_rest: Fix nested message stanzas in XEP-0297 containers
It's all a bit awkward because it doesn't normally use the whole schema
directly, but rather checks which stanza type is used and picks out that
property as a schema. Which also prevents references from working.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 29 Dec 2021 19:40:28 +0100 |
parents | e9b7c8db3ebd |
children | 52522c71ad1a |
line wrap: on
line diff
--- a/mod_rest/res/schema-xmpp.json Wed Dec 29 18:31:40 2021 +0100 +++ b/mod_rest/res/schema-xmpp.json Wed Dec 29 19:40:28 2021 +0100 @@ -565,7 +565,8 @@ }, "type" : "object", "xml" : { - "name" : "iq" + "name" : "iq", + "namespace" : "jabber:client" } }, "message" : { @@ -631,7 +632,7 @@ "$ref" : "#/_common/delay" }, "message" : { - "$ref" : "#/message" + "$ref" : "#/properties/message" } }, "title" : "XEP-0297: Stanza Forwarding", @@ -894,7 +895,8 @@ }, "type" : "object", "xml" : { - "name" : "message" + "name" : "message", + "namespace" : "jabber:client" } }, "presence" : { @@ -1006,7 +1008,8 @@ }, "type" : "object", "xml" : { - "name" : "presence" + "name" : "presence", + "namespace" : "jabber:client" } } },