util.datamapper: Revert one special attribute to longer form

Had a name, using attr() broke it.
This commit is contained in:
Kim Alvefur 2021-03-26 13:01:16 +01:00
parent f36d7d1161
commit 45acd03672

View file

@ -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"}}};
};
};