OpenAPI3 "placeholder" feature conversion to swagger2
The OpenAPI3 spec allows us to specify the same format for multiple media types using placeholders.
To define the same format for multiple media types, you can also use placeholders like
*/*,application/*,image/*or others
Currently, using that syntax would result in simply loosing our content definition once converted to swagger2, with the following log:
unsupported request body media type
Should those placeholders be supported and generate the content types for every MIME type supported by swagger 2 ?
I think Swagger 2 supports all MIME types, so hypothetically application/* could match an infinite number of types (if you include vendor extensions).
Maybe we could add an option to pass in an array of supported MIME types (without placeholders) which would be expanded by the converter. We could also have a sane default with the most common MIME types.
That seems reasonable, it also has the advantage of allowing us to throw vendor specific types to the mix