Comparison

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
comparison
equal deleted inserted replaced
11487:b104c10ffce7 11488:332c9291f4d5
52 }; 52 };
53 react = { 53 react = {
54 type = "object"; 54 type = "object";
55 xml = {namespace = "urn:xmpp:reactions:0"; name = "reactions"}; 55 xml = {namespace = "urn:xmpp:reactions:0"; name = "reactions"};
56 properties = { 56 properties = {
57 to = attr(); 57 to = {type = "string"; xml = {attribute = true; name = "id"}};
58 reactions = {type = "array"; items = {type = "string"; xml = {name = "reaction"}}}; 58 reactions = {type = "array"; items = {type = "string"; xml = {name = "reaction"}}};
59 }; 59 };
60 }; 60 };
61 stanza_ids = { 61 stanza_ids = {
62 type = "array"; 62 type = "array";