Skip to content

Commit d308b1e

Browse files
committed
Allow RFC 4648 content encodings
RFC 4648 is a more modern standard for encodings, and addresses ambiguities and application-specific limits of the "base64" encoding from RFC 2045. It also adds several commonly used variations, such as "base64url", that are relevant to modern systems. RFC 2045 values are still allowed, although for "base64", RFC 4648 now takes precedence.
1 parent 5b51942 commit d308b1e

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

jsonschema-validation.xml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<!ENTITY RFC3987 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3987.xml">
1111
<!ENTITY RFC4291 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4291.xml">
1212
<!ENTITY RFC4329 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4329.xml">
13+
<!ENTITY RFC4648 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4648.xml">
1314
<!ENTITY RFC5322 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5322.xml">
1415
<!ENTITY RFC5890 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5890.xml">
1516
<!ENTITY RFC5891 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5891.xml">
@@ -330,7 +331,7 @@
330331
</t>
331332
</section>
332333

333-
<section title="pattern">
334+
<section title="pattern" anchor="pattern">
334335
<t>
335336
The value of this keyword MUST be a string. This string SHOULD be a
336337
valid regular expression, according to the ECMA 262 regular expression
@@ -759,8 +760,16 @@
759760
If the instance value is a string, this property defines that the string
760761
SHOULD be interpreted as binary data and decoded using the encoding
761762
named by this property.
762-
<xref target="RFC2045">RFC 2045, Sec 6.1</xref> lists the possible
763-
values for this property.
763+
</t>
764+
765+
<t>
766+
Possible values for this property are listed in
767+
<xref target="RFC2045">RFC 2045, Sec 6.1</xref> and
768+
<xref target="RFC4648">RFC 4548</xref>. For "base64", which is defined
769+
in both RFCs, the definition in RFC 4648, which removes line length
770+
limitations, SHOULD be used, as various other specifications have
771+
mandated different lengths. Note that line lengths within a string
772+
can be constrained using the <xref target="pattern">"pattern"</xref> keyword.
764773
</t>
765774

766775
<t>
@@ -991,6 +1000,7 @@
9911000
&RFC3986;
9921001
&RFC3987;
9931002
&RFC4291;
1003+
&RFC4648;
9941004
&RFC5322;
9951005
&RFC5890;
9961006
&RFC5891;

0 commit comments

Comments
 (0)