Skip to content

Unable to define a parameter with an array of files #525

@phansys

Description

@phansys

With the following annotation:

    /*
     *    @Swagger\Annotations\Parameter(
     *         name="attachments",
     *         in="formData",
     *         description="@todo: Add missing description for parameter 'attachments'",
     *         required=false,
     *         type="array",
     *         @Swagger\Annotations\Items(type="string", format="binary")
     *    )
     */

I get this notice:

@Swagger\Annotations\Items()->type="file" not allowed inside a @Swagger\Annotations\Parameter() must be "string", "number", "integer", "boolean", "array" 

How could I define a parameter which accepts a collection of files?
Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions