Description
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 isapplication/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
withformat
beingbinary
–application/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.