Skip to content

Commit

Permalink
XEP-0478: Add the XML Schema
Browse files Browse the repository at this point in the history
  • Loading branch information
linkmauve committed Aug 2, 2024
1 parent 283598c commit 321c83b
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion xep-0478.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@
<jid>[email protected]</jid>
</author>
&mwild;
<revision>
<version>0.1.1</version>
<date>2024-08-02</date>
<initials>egp</initials>
<remark>
<p>Add the XML Schema.</p>
</remark>
</revision>
<revision>
<version>0.1.0</version>
<date>2023-05-04</date>
Expand Down Expand Up @@ -129,6 +137,36 @@
<p>The ability for a client to announce limits on what it will receive on a client-to-server stream is deliberately not provided by this specification. This vastly simplifies discovery of the maximum limits between any two JIDs, and it avoids situations where the server is unable to deliver incoming stanzas to some or all of an account's connected clients. Clients will already be protected from denial-of-service through excessive stanza sizes due to the server's own limits.</p>
</section1>
<section1 topic='XML Schema' anchor='schema'>
<p>TBD.</p>
<code><![CDATA[
<?xml version='1.0' encoding='UTF-8'?>
<xs:schema
xmlns:xs='http://www.w3.org/2001/XMLSchema'
xmlns='urn:xmpp:stream-limits:0'
targetNamespace='urn:xmpp:stream-limits:0'
elementFormDefault='qualified'>
<xs:annotation>
<xs:documentation>
The protocol documented by this schema is defined in
XEP-0478: https://xmpp.org/extensions/xep-0478.html
</xs:documentation>
</xs:annotation>
<xs:element name='limits'>
<xs:complexType>
<xs:sequence>
<xs:element ref='max-bytes'/>
<xs:element ref='idle-seconds'/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name='max-bytes' type='xs:unsignedInt'/>
<xs:element name='idle-seconds' type='xs:unsignedInt'/>
</xs:schema>
]]></code>
</section1>
</xep>

0 comments on commit 321c83b

Please sign in to comment.