PaloAltoNetworks / docusaurus-openapi-docs

🦝 OpenAPI plugin for generating API reference docs in Docusaurus v3.
https://docusaurus-openapi.tryingpan.dev
MIT License
707 stars 237 forks source link

Array of files in input doesn't work in GUI #801

Open andreazerbini opened 7 months ago

andreazerbini commented 7 months ago

Describe the bug

When we have an API that requires a list of documents in input, it's impossible to upload them.

Expected behavior

The upload of multiple files can be done via Docusaurus GUI.

Current behavior

From Docusaurus is impossible to upload multiple files and to invoke these types of API endpoints.

Steps to reproduce

Pre-requirements: having an endpoint API that can be used to upload an array of files. For example, having this type of OpenApi properties: properties: files: type: array description: List of documents to upload async items: type: string format: binary

Screenshots

Example of docusaurus' view of a single file as input (it works!): onefile_upload_in_docusaurus_ae64eaa9-65c9-4b19-8e78-40811a0b4bd5

Example of docusaurus' view of an array of files as input (it doesn't works): array_of_files_upload_in_docusaurus_423ae299-cb4a-4cb7-b2eb-4c9262e671c1

Example of Swagger editor of OpenAPI with the same OpenAPI defined above (it works): SWAGGER_OPEN_API_EDITOR_WORKS_Immagine 2024-04-15 172301

here is possible to upload multiple files as array.

Your Environment

sserrata commented 4 months ago

Hi @andreazerbini, thanks for reporting this issue. I've added this to our roadmap but don't have an estimation yet on when we can begin working on it. I'll leave this issue open for now.