Description
Can we get clarification on how to post multipart form data with an array of items of type X?
Here is an example requestBody:
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
files:
type: array
items: {}
bools:
type: array
items:
type: boolean
strings:
type: array
items:
type: string
1 What if x is a boolean?
2. Are the rfc accepted string serializations for booleans or should we use json?
3. What if X is multipart/octet-stream binary data, should the array be exploded? If so should the name be files or files[]?
4. If x is type string, should the array serialized with explode = True or False?
5. When should explode be true and when should it be false for multipart form data?
6. What count as primitive types aside from strings? int? float? bool? null?
7. Should empty arrays be sent with json content-type because explode would not send their data?
Any actual examples including the data sent in each multipart section would be a great help.
It looks like this PR is related:
#2066