Skip to content

Add schema to uploadFile endpoint requestBody #245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jhogervorst
Copy link

We are generating an API client in PHP using openapi-generator-cli. We noticed that the uploadFile endpoint/method was not usable, because it didn’t accept a file as request body. It turns out that adding a simple schema to the endpoint’s requestBody resolves this, per the example for file uploads by Swagger.

@m-ods m-ods requested a review from marcusolsson April 26, 2025 01:28
@m-ods
Copy link
Contributor

m-ods commented Apr 26, 2025

Thanks @jhogervorst!

@marcusolsson could you help to take a look here? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants