P
P
P7472021-11-16 17:18:48
symfony
P747, 2021-11-16 17:18:48

Uploading multiple files in Swagger-Symfony?

Good afternoon!
Tell me, has anyone tried multiple loading in your API on the Symfony framework using Swagger? At the moment there is support for one via OpenApi\Annotations:

*          @OA\Schema(
 *              required={"file"},
 *              @OA\Property(property="file", type="file", format="binary")
 *          )


One by one works, and if multiple, then it looks like this:
*          @OA\Schema(
 *              required={"file"},
 *              @OA\Property(
 *                  property="files[]",
 *                  type="array",
 *                  format="binary",
 *                  @OA\Items(type="file", format="binary")
 *              )
 *          )


6193bda5ec691274290408.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question