1
0
mirror of https://gitlab.com/xmpp-rs/xmpp-rs.git synced 2024-06-01 22:09:20 +02:00
xmpp-rs/parsers
Jonas Schäfer ed0a1cd8cf xmpp_parsers::jingle: make ReasonElement::texts into an Option
The Jingle XEP says [1]:

> The <reason/> element MAY contain a <text/> element that provides
> human-readable information about the reason for the action.

It says nowhere that there may be more than one `<text/>` element in
there, or that they may be qualified by xml:lang. The schema [2] also
agrees with that:

> ```
>   <xs:complexType name='reasonElementType'>
>     <xs:sequence>
>       <xs:choice>
>         <!-- … omitted … -->
>       </xs:choice>
>       <xs:element name='text' type='xs:string' minOccurs='0' maxOccurs='1'/>
>       <!-- … omitted … -->
>     </xs:sequence>
>   </xs:complexType>
> ```

   [1]: https://xmpp.org/extensions/xep-0166.html#def-reason
   [2]: https://xmpp.org/extensions/xep-0166.html#schema-jingle
2024-04-17 17:13:56 +02:00
..
examples Update edition to 2021 2023-12-15 19:40:09 +00:00
src xmpp_parsers::jingle: make ReasonElement::texts into an Option 2024-04-17 17:13:56 +02:00
Cargo.toml Use relative cargo paths when using local copy 2023-12-18 13:06:22 +01:00
ChangeLog parsers: re-export the jid module entirely 2023-10-26 14:03:21 +02:00
doap.xml Added xep-0264 to doap.xml 2024-02-08 16:07:41 +00:00
LICENSE Rename the xmpp-parsers directory to parsers 2021-10-11 08:24:16 +02:00
README.md xmpp-parsers: Add a README 2022-03-07 12:59:43 +01:00

xmpp-parsers

Whats this?

A crate which provides parsers and serialisers for most XMPP elements, to avoid having to deal with XML manually. It validates its inputs by default, and aims at providing useful errors when a particular XML element was invalid.

What license is it under?

MPL-2.0 or later, see the LICENSE file.