PaloAltoNetworks / docusaurus-openapi-docs

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

API plugin isn't working with the file upload #698

Open AnaSofia-1294 opened 9 months ago

AnaSofia-1294 commented 9 months ago

Describe the bug

So Im adding the documentation of the api with paloalto plugin. And in this documentation, we added options and one of this is to add a file uploaded. When I see the code with the curl widget is ok and working fine. But when I use the python formatted code, I don't see the file uploaded.

Expected behavior

To see the file uploaded in the right argument of the python code.

Current behavior

So when you have the plugin api installed in the documentation you can see the the parameters being filled according to the options.

Steps to reproduce

1. 2. 3. 4.

Screenshots

Context

Your Environment

pwoznic commented 8 months ago

We have the same Python issue in our documentation site with this plugin: https://docs.vectara.com/docs/rest-api/file-upload

AnaSofia-1294 commented 8 months ago

any solution about this bug?

sserrata commented 4 months ago

Seems to affect other languages, not just python. We use postman-code-generators so, it's either a limitation with the library or a possible issue with the implementation in our plugin.