Multipart File Upload
Document endpoints with the multipart/form-data
content type
Multipart requests combine one or more sets of data into a single body, separated by boundaries. You typically use these requests for file uploads and for transferring data of several types in a single request (for example, a file along with a JSON object).
openapi.yml
Any request body that is defined with a multipart/form-data
content type, will be
treated as a multipart request. Within a given multipart request, a string parameter with
format:binary
will represent an arbitrary file.
Array of Files
If your endpoint supports an array of files, then your request body must use an array type.