Skip to content

Commit 05fe4a3

Browse files
committed
Improve contentEncoding RFC references
The reference to RFC 2045 was ambiguous and misleading. Emphasize RFC 4648 more, and clarify what from 2045 is relevant and when.
1 parent 4d82504 commit 05fe4a3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

jsonschema-validation.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -979,19 +979,19 @@
979979
</t>
980980

981981
<t>
982-
Possible values for this property are listed in
983-
<xref target="RFC2045">RFC 2045, Sec 6.1</xref> and
984-
<xref target="RFC4648">RFC 4648</xref>. For "base64", which is defined
985-
in both RFCs, the definition in RFC 4648, which removes line length
986-
limitations, SHOULD be used, as various other specifications have
987-
mandated different lengths. Note that line lengths within a string
988-
can be constrained using the <xref target="pattern">"pattern"</xref> keyword.
982+
Possible values indicating base 16, 32, and 64 encodings with several
983+
variations are listed in <xref target="RFC4648">RFC 4648</xref>. Additionally,
984+
sections 6.7 and 6.8 of <xref target="RFC2045">RFC 2045</xref> provide
985+
encodings used in MIME. As "base64" is defined in both RFCs, the definition
986+
from RFC 4648 SHOULD be assumed unless the string is specifically intended
987+
for use in a MIME context.
989988
</t>
990989

991990
<t>
992991
If this keyword is absent, but "contentMediaType" is present, this
993-
indicates that the media type could be encoded into UTF-8 like any
994-
other JSON string value, and does not require additional decoding.
992+
indicates that the encoding is the identity encoding, meaning that
993+
no transformation was needed in order to represent the content in
994+
a UTF-8 string.
995995
</t>
996996

997997
<t>

0 commit comments

Comments
 (0)