Is it possible to indicate the requiredness of a multipart/form-data
's request's filename
directive?
#4442
Labels
media and encoding
Issues regarding media type support and how to encode data (outside of query/path params)
param serialization
Issues related to parameter and/or header serialization
Milestone
As far as I can tell, the
required
property in the OpenAPI spec can be used to specify that an entiremultipart/form-data
part is required, but it cannot be used to indicate whether thefilename
directive is required.This would be pretty useful since some
multipart/form-data
endpoints require thefilename
directive while others do not. If OpenAPI allowed specifying those semantics, then that could be used in various generators that consume OpenAPI (e.g. an SDK generator could check whether the end-user supplied afilename
if it's required).The text was updated successfully, but these errors were encountered: