Skip to content

Encoding Object contentType field: "comma-separated list of the two types"? #3739

Closed
@handrews

Description

@handrews

Docs for the contentType field of the Encoding Object in 3.1.0 read (emphasis added):

The Content-Type for encoding a specific property. Default value depends on the property type: for object - application/json; for array – the default is defined based on the inner type; for all other cases the default is application/octet-stream. The value can be a specific media type (e.g. application/json), a wildcard media type (e.g. image/*), or a comma-separated list of the two types

In 3.0.3 it reads (emphasis added again):

The Content-Type for encoding a specific property. Default value depends on the property type: for string with format being binaryapplication/octet-stream; for other primitive types – text/plain; for object - application/json; for array – the default is defined based on the inner type. The value can be a specific media type (e.g. application/json), a wildcard media type (e.g. image/*), or a comma-separated list of the two types.

Two types? Just exactly two? Was this meant to be "two or more types"? The 3.0.3. wording of "the two types" feels a bit different but no more clear to me.

Metadata

Metadata

Assignees

Labels

media and encodingIssues regarding media type support and how to encode data (outside of query/path params)question

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions