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

multipart/form-data support #62

Closed
dejvidecz opened this issue Jun 10, 2024 · 6 comments
Closed

multipart/form-data support #62

dejvidecz opened this issue Jun 10, 2024 · 6 comments

Comments

@dejvidecz
Copy link
Contributor

Is it possible to add support for multipart/form-data with json content?

Swagger example:

swagger.json

Expected behavior after generating - something like this:
image

Generated behaviour - DTO is completely missing.
image

I woud use something like Generic FormData for this - maybe this microsoft/TypeScript#43797 (comment)

And result should be request that looks like this:
image

What do you think? :)

@gaboe
Copy link
Owner

gaboe commented Jun 11, 2024

Good idea to add this.

What is IRuntimeForm? Is it imported from somewhere?

@dejvidecz
Copy link
Contributor Author

@gaboe
Just something i found here as example:
microsoft/TypeScript#43797 (comment)

@gaboe
Copy link
Owner

gaboe commented Jun 11, 2024

Ok, I wasn't sure if it comes from some package. It looks good - are you working on implementation? I can implement when i would have a time.

@dejvidecz
Copy link
Contributor Author

@gaboe
Maybe i have found easier solution.
For multipart/form-data just use same functions but update post request like this:
image

What do you think? (Its not tested solution - just idea)
Does it make sense to you?

@dejvidecz
Copy link
Contributor Author

@gaboe
#63

@gaboe
Copy link
Owner

gaboe commented Jun 19, 2024

Published as 5.2.0

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

No branches or pull requests

2 participants