OpenAPI spec defines the possibility to specify parts of multipart request:
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
metadata:
type: object
properties:
propA:
type: string
propB:
type: string
file:
type: string
format: binary
However, I'm looking for a way, do define arbitrary (dynamic) number of files, which can be sent on the API.
E.g. something like this:
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
metadata:
type: object
properties:
propA:
type: string
propB:
type: string
file:
type: array
items:
type: string
format: binary
Is this supported by OpenApi spec ?