Software /
code /
prosody-modules
Changeset
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 |
parents | 4533:578375759510 |
children | 4535:dc35d2932d3e |
files | mod_rest/res/schema-xmpp.json |
diffstat | 1 files changed, 30 insertions(+), 0 deletions(-) [+] |
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" : [