Skip to content

Commit 0d05be0

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 56b45de commit 0d05be0

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
@@ -977,19 +977,19 @@
977977
</t>
978978

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

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

995995
<t>

0 commit comments

Comments
 (0)