util.datamapper: Revert one special attribute to longer form
Had a name, using attr() broke it.
--- 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"}}};
};
};