Skip to content
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

Ensure example code supports multipart/form-data without files #685

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

leith
Copy link
Contributor

@leith leith commented Jun 14, 2023

Currently the Postman and OpenAPI writers both make allowances for when the Content-Type header has been set to multipart/form-data to render different output. This extends the same logic to the generated example code, which currently only uses the multipart/form-data format if there is a file required to send for the endpoint.

@shalvah shalvah merged commit ff729f6 into knuckleswtf:master Jun 30, 2023
@leith leith deleted the fix-multipart-form-data-examples branch August 28, 2023 23:12
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