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

Add support for multipart/form-data when file is present #1

Open
wants to merge 1 commit into
base: typescript-axios
Choose a base branch
from

Conversation

jackjocross
Copy link

This PR is based on swagger-api#4852 and adds support for uploading files with multipart/form-data.

let hasFile = false;
{{#formParams}}
{{#isFile}}hasFile = true;
{{/isFile}}
Copy link
Author

@jackjocross jackjocross Feb 11, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is a little clunky, but comments in the PR I based these changes off of didn't offer alternative solutions: https://github.com/swagger-api/swagger-codegen/pull/4852/files#r104352794.

eonwhite pushed a commit that referenced this pull request Dec 26, 2019
…i#8157)

Motivation
----
The current release of swagger-codegen does not output valid strict typescript for discriminators

Modifications
----
Updating the discriminator output to be valid strict typescript
eonwhite pushed a commit that referenced this pull request Dec 26, 2019
eonwhite pushed a commit that referenced this pull request Dec 26, 2019
eonwhite pushed a commit that referenced this pull request Dec 26, 2019
virtuoushub referenced this pull request in virtuoushub/swagger-codegen Jan 13, 2022
Merging updates to typescript-axios codegen and Kotlin codegen
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.

1 participant