Changeset

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
parents 11487:b104c10ffce7
children 11489:37f49d0ad22c
files spec/util_datamapper_spec.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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"}}};
 					};
 				};