util.datamapper: Revert one special attribute to longer form
authorKim Alvefur <zash@zash.se>
Fri, 26 Mar 2021 13:01:16 +0100
changeset 11492 332c9291f4d5
parent 11491 b104c10ffce7
child 11493 37f49d0ad22c
util.datamapper: Revert one special attribute to longer form Had a name, using attr() broke it.
spec/util_datamapper_spec.lua
--- a/spec/util_datamapper_spec.lua	Fri Mar 26 12:53:29 2021 +0100
+++ b/spec/util_datamapper_spec.lua	Fri Mar 26 13:01:16 2021 +0100
@@ -54,7 +54,7 @@
 					type = "object";
 					xml = {namespace = "urn:xmpp:reactions:0"; name = "reactions"};
 					properties = {
-						to = attr();
+						to = {type = "string"; xml = {attribute = true; name = "id"}};
 						reactions = {type = "array"; items = {type = "string"; xml = {name = "reaction"}}};
 					};
 				};