-
-
Notifications
You must be signed in to change notification settings - Fork 381
OpenAPI 3 / 3.1 handling of binary content #550
Copy link
Copy link
Closed
Labels
bug 🔥Broken or incorrect behavior.Broken or incorrect behavior.important 📌This issue is important and will be addressed when capacity allows.This issue is important and will be addressed when capacity allows.
Milestone
Metadata
Metadata
Assignees
Labels
bug 🔥Broken or incorrect behavior.Broken or incorrect behavior.important 📌This issue is important and will be addressed when capacity allows.This issue is important and will be addressed when capacity allows.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
OpenAPI 3 has dropped the file type. It looks like this is not reflected here.
When using
type: filein a schema:the corresponding typescript type is created as
(Blob | File). Which is the expected behaviour for OpenApi v2 but the above is not a valid OpenAPI 3 / 3.1 spec as thetype: fileis not supported anymore.In OpenAPI 3:
Or use
type: stringwithcontentEncodingkeyword.However, this will generate typescript types of either
unknownorstring.OpenAPI specification (optional)
Configuration
No response
System information (optional)
No response