Software /
code /
prosody-modules
Diff
mod_rest/res/schema-xmpp.json @ 4534:9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 24 Mar 2021 01:02:58 +0100 |
parent | 4533:578375759510 |
child | 4547:a9e997d5eb94 |
line wrap: on
line diff
--- a/mod_rest/res/schema-xmpp.json Tue Mar 23 23:53:04 2021 +0100 +++ b/mod_rest/res/schema-xmpp.json Wed Mar 24 01:02:58 2021 +0100 @@ -418,6 +418,36 @@ "x_single_attribute" : "id" } }, + "stanza_ids" : { + "items" : { + "properties" : { + "by" : { + "format" : "xmpp-jid", + "type" : "string", + "xml" : { + "attribute" : true + } + }, + "id" : { + "type" : "string", + "xml" : { + "attribute" : true + } + } + }, + "required" : [ + "id", + "by" + ], + "type" : "object", + "xml" : { + "name" : "stanza-id", + "namespace" : "urn:xmpp:sid:0" + } + }, + "title" : "XEP-0359: Unique and Stable Stanza IDs", + "type" : "array" + }, "state" : { "description" : "Chat state notifications, e.g. \"is typing...\"", "enum" : [