# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1616539984 -3600
# Node ID 578375759510d674724b7f32d4abc0f047b677ea
# Parent  183c2abdc3c4e29c468268cc51c87cb6609e8870
mod_rest: Remodel occupant-id (XEP-0421) as single attribute tag

occupant_id.id = silly

diff -r 183c2abdc3c4 -r 578375759510 mod_rest/res/schema-xmpp.json
--- 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" : {