Diff

spec/util_datamapper_spec.lua @ 11488:332c9291f4d5

util.datamapper: Revert one special attribute to longer form Had a name, using attr() broke it.
author Kim Alvefur <zash@zash.se>
date Fri, 26 Mar 2021 13:01:16 +0100
parent 11487:b104c10ffce7
child 11494:284c822d4c3d
line wrap: on
line diff
--- 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"}}};
 					};
 				};