Skip to content

Question: Content-Encoding HTTP header field and contentEncoding #2476

@ioggstream

Description

@ioggstream

Question

Reading the following part https://github.com/OAI/OpenAPI-Specification/blame/master/versions/3.1.0.md#L1451
it is not clear to me the meaning of the following sentence

contentEncoding keyword [..] may be used to specify the Content-Encoding for the schema.

My understanding is that it specifies the encoding used to serialize the application data before it is passed
to the HTTP layer, which eventually adds one or more content-codings.

The encoding specified by the contentEncoding keyword
is independent of an encoding specified by the Content-Type header
in the request or response or metadata of a multipart body
[..] then the encoding specified in the Content-Type header.

Is Content-Type the HTTP header field? In that case, iiuc its value is a media-type: how can I specify an encoding? Does it mean "charset"?

cc: @handrews

Metadata

Metadata

Assignees

Labels

clarificationrequests to clarify, but not change, part of the specmedia and encodingIssues regarding media type support and how to encode data (outside of query/path params)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions