Commit graph

7 commits

Author SHA1 Message Date
Kim Alvefur
c62c5b307e util.datamapper: Add initial support for parsing arrays 2021-03-18 12:57:25 +01:00
Kim Alvefur
9d25c9c9ac util.datamapper: Enumerated elements
E.g. error conditions or chat states.
2021-03-12 01:33:15 +01:00
Kim Alvefur
07889f274d util.datamapper: Add support for mapping of elements where only one attribute matters
E.g. <feature var='foo'/> in XEP-0030 and some other simple
specifications.
2021-03-07 12:48:49 +01:00
Kim Alvefur
7cd2803161 util.datamapper: Add logic for "boolean" tags here the presence means true 2021-03-07 01:41:39 +01:00
Kim Alvefur
d20ea9b87e util.datamapper: Invent extension for using tag name as value
Useful for certain enum-like uses where the element name is the relevant
information, e.g. chat states.
2021-03-06 23:14:23 +01:00
Kim Alvefur
d8e9e044f2 util.datamapper: Add 'unparse' for turning tables into XML 2021-03-07 00:57:36 +01:00
Kim Alvefur
081eb23c54 util.datamapper: Library for extracting data from stanzas
Based on the XML support in the OpenAPI specification.
2021-03-07 00:57:36 +01:00