-
Notifications
You must be signed in to change notification settings - Fork 83
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
Issue with file uploads #102
Comments
does not support uploading files by reference dto now. |
@Manweill Would you accept a PR that made it work with reference DTO's? |
@joshstrange |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The JSON Swagger file looks like it should work according the the spec and I dug down into the code and I think the issue is in
mapFormDataToV2
(or one level above).Relevant parts of my spec:
......
From debugging the code I see that right being passed into
mapFormDataToV2
mymultiDataProperties
is:but inside
mapFormDataToV2
it doesn't "expand" the$ref
like you do ingetResponseType.ts
. I tried expanding theFileUploadDto
inline in the code and it correctly generated the axios code.I feel like the fix is to either copy/paste some/all of the logic from
getResponseType.ts
intomapFormDataToV2
or abstract the logic away into another function they both use. Thoughts?The text was updated successfully, but these errors were encountered: