Add support for deriving content_encoding and content_media_type on
struct named fields.
In OpenAPI 3.0 the request body and response body with type string and
format binary, byte, base64 was considered a
application/octet-stream. However the OpenAPI 3.1 does not require
such and and the schema can be completely ignored in such cases.
This commit will remove the old behaviour where [u8] was rendered as
type: stringformat: binary for recognizing
application/octet-stream. From now on the content schema will be
resolved as is which means that [u8] will be rendered as type: array
of items: int32.
Add support for deriving
content_encoding
andcontent_media_type
on struct named fields.In OpenAPI 3.0 the request body and response body with type
string
and formatbinary
,byte
,base64
was considered aapplication/octet-stream
. However the OpenAPI 3.1 does not require such and and the schema can be completely ignored in such cases.This commit will remove the old behaviour where [u8] was rendered as
type: string
format: binary
for recognizingapplication/octet-stream
. From now on the content schema will be resolved as is which means that [u8] will be rendered astype: array
ofitems: int32
.Update documentation and add more known formats according to the https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#section-7.3