Changeset

4533:578375759510

mod_rest: Remodel occupant-id (XEP-0421) as single attribute tag occupant_id.id = silly
author Kim Alvefur <zash@zash.se>
date Tue, 23 Mar 2021 23:53:04 +0100
parents 4532:183c2abdc3c4
children 4534:9837c73826d2
files mod_rest/res/schema-xmpp.json
diffstat 1 files changed, 3 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/mod_rest/res/schema-xmpp.json	Tue Mar 23 23:41:10 2021 +0100
+++ b/mod_rest/res/schema-xmpp.json	Tue Mar 23 23:53:04 2021 +0100
@@ -315,19 +315,12 @@
                }
             },
             "occupant_id" : {
-               "properties" : {
-                  "id" : {
-                     "type" : "string",
-                     "xml" : {
-                        "attribute" : true
-                     }
-                  }
-               },
                "title" : "XEP-0421: Anonymous unique occupant identifiers for MUCs",
-               "type" : "object",
+               "type" : "string",
                "xml" : {
                   "name" : "occupant-id",
-                  "namespace" : "urn:xmpp:occupant-id:0"
+                  "namespace" : "urn:xmpp:occupant-id:0",
+                  "x_single_attribute" : "id"
                }
             },
             "oob" : {