You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The contentEncoding keyword specifies the encoding used to store the contents, as specified in [RFC 2054, part 6.1.](The contentEncoding keyword specifies the encoding used to store the contents, as specified in RFC 2054, part 6.1.)
The acceptable values are 7bit, 8bit, binary, quoted-printable and base64. If not specified, the encoding is the same as the containing JSON document.
We're using "contentEncoding": "base64", to handle binary blobs for other purposes in our (non-public) API. However, the ReDoc rendering of the field doesn't reflect this:
OpenAPI 3.1 supports JSON Schema
contentEncoding
to mark a field as containing non-string content, see https://json-schema.org/understanding-json-schema/reference/non_json_data.html:The example used in image data, here as JSON:
We're using
"contentEncoding": "base64",
to handle binary blobs for other purposes in our (non-public) API. However, the ReDoc rendering of the field doesn't reflect this:The field is there but there is no indication that there is a content encoding specified:
Could this be enhanced to show that the field is expected to use base64 encoding?
The text was updated successfully, but these errors were encountered: