You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenAPI Version 2 (Swagger) supports a primitive type type: file to denote the response as being a file. Data Types documentation.
However, OpenAPI 3.0 does not have a "file" type; instead, file is defined as type: strings with the format: binary (reference).
When using openapi2conv to convert from OAS v2 to v3, the converter does not correctly convert type: "file" to type: "string" with format: "binary". This results in a OpenAPI V3 validation error.
OpenAPI Version 2 (Swagger) supports a primitive type
type: file
to denote the response as being a file. Data Types documentation.However, OpenAPI 3.0 does not have a "file" type; instead, file is defined as
type: strings
with theformat: binary
(reference).When using
openapi2conv
to convert from OAS v2 to v3, the converter does not correctly converttype: "file"
totype: "string"
withformat: "binary"
. This results in a OpenAPI V3 validation error.For example, a v2 path with a GET operation:
Gets converted to V3 document with type: file as
type: file
instead of thetype: "string"
withformat: "binary"
The
type: "file"
should be converted totype: "string"
andformat: "binary"
.The text was updated successfully, but these errors were encountered: