Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.dataforms: Coerce number values for boolean fields | Kim Alvefur | 2021-10-26 | 1 | -0/+10 |
| | | | | | Makes more sense than coercing to a string, which would always be truthy. | ||||
* | util.dataforms: Add support for datetime field types via XEP-0122 | Kim Alvefur | 2021-10-25 | 1 | -0/+14 |
| | |||||
* | util.dataforms: Add support for validating (integer) ranges | Kim Alvefur | 2019-11-21 | 1 | -0/+9 |
| | |||||
* | util.dataforms: Add more XEP-0211 media element test coverage | Kim Alvefur | 2020-08-16 | 1 | -0/+28 |
| | |||||
* | util.dataforms: Convert media element sizes to avoid error on Lua 5.3 | Kim Alvefur | 2020-08-16 | 1 | -0/+15 |
| | | | | | | | | The stanza API does not accept number values and threw an error due to the height and width attributes of the media element (XEP-0221). This part had no test coverage previously, explaining why it was not discovered until now. | ||||
* | util.dataforms: Improve descriptions in tests | Kim Alvefur | 2019-12-16 | 1 | -5/+5 |
| | |||||
* | util.dataforms: Add support for XEP-0122: Data Forms Validation | Kim Alvefur | 2018-09-01 | 1 | -0/+22 |
| | | | | Initially only basic validation of xs:integer | ||||
* | util.dataforms: Allow field names to be different from the 'var' attribute | Kim Alvefur | 2018-09-01 | 1 | -0/+15 |
| | | | | | | This should allow the usage of long prefixes and namespace-like names to be contained to the XML representation of the form, so that the code can use more convenient names. | ||||
* | util.dataforms: Allow passing the current values to be used in stead of ↵ | Kim Alvefur | 2018-08-05 | 1 | -0/+39 |
| | | | | omitted fields | ||||
* | util.dataforms: Add failing test for #1177 | Kim Alvefur | 2018-06-30 | 1 | -0/+27 |
| | |||||
* | util.dataforms: Include a fixed field in test | Kim Alvefur | 2018-07-15 | 1 | -0/+10 |
| | |||||
* | util.dataforms: Add a simple function for identifying form types | Kim Alvefur | 2018-06-02 | 1 | -0/+9 |
| | | | | | This is meant to allow identifying forms without parsing them completely. | ||||
* | util.dataforms: Add initial tests | Kim Alvefur | 2018-06-02 | 1 | -0/+305 |
This covers basic form generation, that the fields have the correct attributes, children and text content. |