<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://hg.omfa.de/prosody-hg/</link>
    <language>en-us</language>

    <title>prosody-hg: spec/util_dataforms_spec.lua history</title>
    <description>spec/util_dataforms_spec.lua revision history</description>
    <item>
    <title>util.stanza: Add method for extracting a single attribute value</title>
    <link>http://hg.omfa.de/prosody-hg/log/e8934ce6ea0f/spec/util_dataforms_spec.lua</link>
    <description><![CDATA[util.stanza: Add method for extracting a single attribute value<br/>
<br/>
Sometimes you only care about a single attribute, but the child tag<br/>
itself may be optional, leading to needing `tag and tag.attr.foo` or<br/>
`stanza:find(&quot;tag@foo&quot;)`.<br/>
<br/>
The `:find()` method is fairly complex, so avoiding it for this kind of<br/>
simpler use case is a win.]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Wed, 17 Aug 2022 19:04:30 +0200</pubDate>
</item>
<item>
    <title>Spelling: Fix various spelling mistakes (thanks timeless)</title>
    <link>http://hg.omfa.de/prosody-hg/log/05c250fa335a/spec/util_dataforms_spec.lua</link>
    <description><![CDATA[Spelling: Fix various spelling mistakes (thanks timeless)<br/>
<br/>
Words, sometimes I wonder how they even work<br/>
<br/>
Maybe I missed something.]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Mon, 07 Mar 2022 00:13:56 +0100</pubDate>
</item>
<item>
    <title>util.dataforms: Ensure larger integers are serialized as such</title>
    <link>http://hg.omfa.de/prosody-hg/log/d30c81b875f2/spec/util_dataforms_spec.lua</link>
    <description><![CDATA[util.dataforms: Ensure larger integers are serialized as such<br/>
<br/>
Assumes that most number fields are integers, as most numeric types<br/>
listed in XEP-0122 are, as are all such fields in Prosody as of this.<br/>
<br/>
Otherwise %g produces something like 1.1259e+15]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Thu, 28 Oct 2021 13:00:24 +0200</pubDate>
</item>
<item>
    <title>util.dataforms: Scope integer handling tests</title>
    <link>http://hg.omfa.de/prosody-hg/log/b8b889ba8d27/spec/util_dataforms_spec.lua</link>
    <description><![CDATA[util.dataforms: Scope integer handling tests<br/>
<br/>
So they're separate from the datetime tests, and any future validation<br/>
tests]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Tue, 26 Oct 2021 15:41:54 +0200</pubDate>
</item>
<item>
    <title>util.dataforms: Turn number values into timestamps for datetime fields</title>
    <link>http://hg.omfa.de/prosody-hg/log/bf6706057283/spec/util_dataforms_spec.lua</link>
    <description><![CDATA[util.dataforms: Turn number values into timestamps for datetime fields<br/>
<br/>
Makes it symmetric with parsing.]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Tue, 26 Oct 2021 15:17:49 +0200</pubDate>
</item>
<item>
    <title>util.dataforms: Coerce number values for boolean fields</title>
    <link>http://hg.omfa.de/prosody-hg/log/593b141ba01c/spec/util_dataforms_spec.lua</link>
    <description><![CDATA[util.dataforms: Coerce number values for boolean fields<br/>
<br/>
Makes more sense than coercing to a string, which would always be<br/>
truthy.]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Tue, 26 Oct 2021 15:15:57 +0200</pubDate>
</item>
<item>
    <title>util.dataforms: Add support for datetime field types via XEP-0122</title>
    <link>http://hg.omfa.de/prosody-hg/log/84f4c6957d62/spec/util_dataforms_spec.lua</link>
    <description><![CDATA[util.dataforms: Add support for datetime field types via XEP-0122]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Mon, 25 Oct 2021 21:45:46 +0200</pubDate>
</item>
<item>
    <title>util.dataforms: Add support for validating (integer) ranges</title>
    <link>http://hg.omfa.de/prosody-hg/log/f7f30a3464fe/spec/util_dataforms_spec.lua</link>
    <description><![CDATA[util.dataforms: Add support for validating (integer) ranges]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Thu, 21 Nov 2019 18:56:43 +0100</pubDate>
</item>
<item>
    <title>util.dataforms: Add more XEP-0211 media element test coverage</title>
    <link>http://hg.omfa.de/prosody-hg/log/8ed6c5bdbb21/spec/util_dataforms_spec.lua</link>
    <description><![CDATA[util.dataforms: Add more XEP-0211 media element test coverage]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sun, 16 Aug 2020 20:30:02 +0200</pubDate>
</item>
<item>
    <title>util.dataforms: Convert media element sizes to avoid error on Lua 5.3</title>
    <link>http://hg.omfa.de/prosody-hg/log/a086825ed73a/spec/util_dataforms_spec.lua</link>
    <description><![CDATA[util.dataforms: Convert media element sizes to avoid error on Lua 5.3<br/>
<br/>
The stanza API does not accept number values and threw an error due to<br/>
the height and width attributes of the media element (XEP-0221).<br/>
<br/>
This part had no test coverage previously, explaining why it was not<br/>
discovered until now.]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sun, 16 Aug 2020 12:55:55 +0200</pubDate>
</item>
<item>
    <title>util.dataforms: Improve descriptions in tests</title>
    <link>http://hg.omfa.de/prosody-hg/log/3089086d31fa/spec/util_dataforms_spec.lua</link>
    <description><![CDATA[util.dataforms: Improve descriptions in tests]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Mon, 16 Dec 2019 02:02:47 +0100</pubDate>
</item>
<item>
    <title>util.dataforms: Add support for XEP-0122: Data Forms Validation</title>
    <link>http://hg.omfa.de/prosody-hg/log/a4c52e304e6f/spec/util_dataforms_spec.lua</link>
    <description><![CDATA[util.dataforms: Add support for XEP-0122: Data Forms Validation<br/>
<br/>
Initially only basic validation of xs:integer]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sat, 01 Sep 2018 03:10:09 +0200</pubDate>
</item>
<item>
    <title>util.dataforms: Allow field names to be different from the 'var' attribute</title>
    <link>http://hg.omfa.de/prosody-hg/log/68694c1bd960/spec/util_dataforms_spec.lua</link>
    <description><![CDATA[util.dataforms: Allow field names to be different from the 'var' attribute<br/>
<br/>
This should allow the usage of long prefixes and namespace-like names to<br/>
be contained to the XML representation of the form, so that the code can<br/>
use more convenient names.]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sat, 01 Sep 2018 01:24:46 +0200</pubDate>
</item>
<item>
    <title>util.dataforms: Allow passing the current values to be used in stead of omitted fields</title>
    <link>http://hg.omfa.de/prosody-hg/log/e5eb36ee07a2/spec/util_dataforms_spec.lua</link>
    <description><![CDATA[util.dataforms: Allow passing the current values to be used in stead of omitted fields]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sun, 05 Aug 2018 15:50:06 +0200</pubDate>
</item>
<item>
    <title>util.dataforms: Add failing test for #1177</title>
    <link>http://hg.omfa.de/prosody-hg/log/5d3639e415bd/spec/util_dataforms_spec.lua</link>
    <description><![CDATA[util.dataforms: Add failing test for #1177]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sat, 30 Jun 2018 20:49:26 +0200</pubDate>
</item>
<item>
    <title>util.dataforms: Include a fixed field in test</title>
    <link>http://hg.omfa.de/prosody-hg/log/7cdc718312c8/spec/util_dataforms_spec.lua</link>
    <description><![CDATA[util.dataforms: Include a fixed field in test]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sun, 15 Jul 2018 22:35:42 +0200</pubDate>
</item>
<item>
    <title>util.dataforms: Add a simple function for identifying form types</title>
    <link>http://hg.omfa.de/prosody-hg/log/cf2f66b233d1/spec/util_dataforms_spec.lua</link>
    <description><![CDATA[util.dataforms: Add a simple function for identifying form types<br/>
<br/>
This is meant to allow identifying forms without parsing them<br/>
completely.]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sat, 02 Jun 2018 19:57:46 +0200</pubDate>
</item>
<item>
    <title>util.dataforms: Add initial tests</title>
    <link>http://hg.omfa.de/prosody-hg/log/900dff5ef498/spec/util_dataforms_spec.lua</link>
    <description><![CDATA[util.dataforms: Add initial tests<br/>
<br/>
This covers basic form generation, that the fields have the correct<br/>
attributes, children and text content.]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sat, 02 Jun 2018 19:47:09 +0200</pubDate>
</item>

  </channel>
</rss>
