Skip to content

Commit a8d4d28

Browse files
handrewsRelequestual
authored andcommitted
Clarify the origin of contentEncoding (#1117)
It is related to MIME's Content-Transfer-Encoding, and not HTTP's Content-Encoding.
1 parent f0a93c6 commit a8d4d28

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

jsonschema-validation.xml

+8-2
Original file line numberDiff line numberDiff line change
@@ -964,15 +964,21 @@
964964

965965
<t>
966966
If the instance value is a string, this property defines that the string
967-
SHOULD be interpreted as binary data and decoded using the encoding
967+
SHOULD be interpreted as encoded binary data and decoded using the encoding
968968
named by this property.
969969
</t>
970970

971971
<t>
972972
Possible values indicating base 16, 32, and 64 encodings with several
973973
variations are listed in <xref target="RFC4648">RFC 4648</xref>. Additionally,
974974
sections 6.7 and 6.8 of <xref target="RFC2045">RFC 2045</xref> provide
975-
encodings used in MIME. As "base64" is defined in both RFCs, the definition
975+
encodings used in MIME. This keyword is derived from MIME's
976+
Content-Transfer-Encoding header, which was designed to map binary data
977+
into ASCII characters. It is not related to HTTP's Content-Encoding header,
978+
which is used for compressing HTTP request and response payloads.
979+
</t>
980+
<t>
981+
As "base64" is defined in both RFCs, the definition
976982
from RFC 4648 SHOULD be assumed unless the string is specifically intended
977983
for use in a MIME context. Note that all of these encodings result in
978984
strings consisting only of 7-bit ASCII characters. Therefore, this keyword

0 commit comments

Comments
 (0)