Skip to content

Commit

Permalink
XEP-0264: Restrict 'width' and 'height' to the 0..65535 range
Browse files Browse the repository at this point in the history
They were previously unbounded integers, aka BigInt in some languages.
This change aligns them to what is currently allowed in XEP-0084 and
XEP-0221 for instance.
  • Loading branch information
linkmauve authored and iNPUTmice committed Sep 18, 2024
1 parent 64394a1 commit 37b33b9
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions xep-0264.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<abstract>This specification defines a way for a client to supply a preview image for Jingle content.</abstract>
&LEGALNOTICE;
<number>0264</number>
<status>Deferred</status>
<status>Experimental</status>
<type>Standards Track</type>
<sig>Standards</sig>
<approver>Council</approver>
Expand All @@ -29,6 +29,14 @@
<jid>[email protected]</jid>
</author>
&lance;
<revision>
<version>0.4.2</version>
<date>2024-07-24</date>
<initials>egp</initials>
<remark>
<p>Restrict 'width' and 'height' to the 0..65535 range, instead of being unbounded integers. This is in accordance to XEP-0084 and XEP-0221 for instance.</p>
</remark>
</revision>
<revision>
<version>0.4.1</version>
<date>2022-09-05</date>
Expand Down Expand Up @@ -228,16 +236,16 @@ wish to not include a thumbnail.</p>
<xs:annotation>
<xs:documentation>
The protocol documented by this schema is defined in
xxx
XEP-0264: http://www.xmpp.org/extensions/xep-0264.html
</xs:documentation>
</xs:annotation>
<xs:element name='thumbnail'>
<xs:complexType>
<xs:attribute name='uri' type='xs:anyURI' use='required'/>
<xs:attribute name='media-type' type='xs:string' use='optional'/>
<xs:attribute name='width' type='xs:integer' use='optional'/>
<xs:attribute name='height' type='xs:integer' use='optional'/>
<xs:attribute name='width' type='xs:unsignedShort' use='optional'/>
<xs:attribute name='height' type='xs:unsignedShort' use='optional'/>
</xs:complexType>
</xs:element>
</xs:schema>
Expand Down

0 comments on commit 37b33b9

Please sign in to comment.