changeset 5080:ce9b836f66d5

mod_rest: Fix JSON conversion of 'displayed' chat marker
author Kim Alvefur <zash@zash.se>
date Mon, 24 Oct 2022 16:21:59 +0200
parents 0aee099f270d
children 660160fe97fa
files mod_rest/res/openapi.yaml mod_rest/res/schema-xmpp.json
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_rest/res/openapi.yaml	Thu Oct 20 11:28:53 2022 +0100
+++ b/mod_rest/res/openapi.yaml	Mon Oct 24 16:21:59 2022 +0200
@@ -1096,6 +1096,7 @@
       description: Message ID of a message that has been displayed
       xml:
         namespace: urn:xmpp:chat-markers:0
+        x_single_attribute: id
 
     idle_since:
       type: string
--- a/mod_rest/res/schema-xmpp.json	Thu Oct 20 11:28:53 2022 +0100
+++ b/mod_rest/res/schema-xmpp.json	Mon Oct 24 16:21:59 2022 +0200
@@ -733,7 +733,8 @@
                "title" : "XEP-0333: Chat Markers",
                "type" : "string",
                "xml" : {
-                  "namespace" : "urn:xmpp:chat-markers:0"
+                  "namespace" : "urn:xmpp:chat-markers:0",
+                  "x_single_attribute" : "id"
                }
             },
             "encryption" : {