binary - any sequence of octets

Base type: string.

The binary format represents any sequence of octets. This format entry is to ensure future versions of OpenAPI maintain compatibility with OpenAPI 3.0.x.


In OpenAPI 3.1, instead set the media type appropriately and do not use a schema property. Note that only complete HTTP message bodies or complete parts in a multipart media type can accommodate binary data. JSON strings and URL path components cannot.