Reputation: 16334
In Swagger UI, is there a way to supply a MIME boundary that can be included in the Content-Type
header?
Using Swagger, I can generate / submit different content types in Swagger UI by using the consumes
property in the Swagger Spec, e.g. application/json
, application/xml
, etc. However, I need to supply a MIME boundary that may be different per request. For example, in the following Content-Type header from RFC 2049, it would be preferable for the unique boundary value to be input in the UI as a text field. Is there anyway to indicate this in the Spec?
Content-Type: multipart/mixed; boundary=unique-boundary-1
Upvotes: 1
Views: 3243
Reputation: 16334
This isn't currently supported and has been accepted as an possible enhancement in the Swagger.Next Proposal on Github:
https://github.com/swagger-api/swagger-spec/issues/303
Upvotes: 1