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

Form serialization issue for typescript client #3006

Closed
illunix opened this issue Jul 25, 2023 · 4 comments
Closed

Form serialization issue for typescript client #3006

illunix opened this issue Jul 25, 2023 · 4 comments
Labels
duplicate This issue or pull request already exists

Comments

@illunix
Copy link

illunix commented Jul 25, 2023

Kiota generates post method that accept ArrayBuffer, and if I will pass arraybuffer to it it sends request with application/octet-stream, it shuld be multipart/form-data

Anyone know how can I solve this?

"requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "description": {
                    "type": "string"
                  },
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "description": {
                  "style": "form"
                },
                "file": {
                  "style": "form"
                }
              }
            }
          }
@illunix illunix changed the title Form serializatrion issue for typescript client Form serialization issue for typescript client Jul 25, 2023
@baywet
Copy link
Member

baywet commented Jul 25, 2023

Hey @illunix,
Thanks for using kiota and for reaching out.
This is exactly what #220 is about and I'm working on right now (did dotnet, java in progress, go and typescript next).
Closing as duplicate.

@baywet baywet closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2023
@baywet baywet added the duplicate This issue or pull request already exists label Jul 25, 2023
@illunix
Copy link
Author

illunix commented Jul 25, 2023

Mhm but Is there any way to work around it? I need it for my project @baywet

@baywet
Copy link
Member

baywet commented Jul 25, 2023

not at this time, you'd need to craft the request manually with a native client.

@sebastienlevert
Copy link
Contributor

Multipart has been merged and would be able to be used with the latest version from main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants