From 45acd0367200f8c7bd9106bc00088a4753d5d019 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 26 Mar 2021 13:01:16 +0100 Subject: util.datamapper: Revert one special attribute to longer form Had a name, using attr() broke it. --- spec/util_datamapper_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/util_datamapper_spec.lua') diff --git a/spec/util_datamapper_spec.lua b/spec/util_datamapper_spec.lua index af460e60..8c66224d 100644 --- a/spec/util_datamapper_spec.lua +++ b/spec/util_datamapper_spec.lua @@ -54,7 +54,7 @@ describe("util.datampper", function() 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"}}}; }; }; -- cgit v1.2.3