-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Labels
area:coreIssues related to `core`, which is the package that powers the SDKs at runtimeIssues related to `core`, which is the package that powers the SDKs at runtimearea:snippetsIssues related to code snippetsIssues related to code snippetsbugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
Operations with multipart/form-data
content types are currently being generated with snippets that look like the following:
const sdk = require('api')('https://example.com/openapi.json');
sdk.post('/multipart', {orderId: '10'}, {'content-type': 'multipart/form-data; boundary=---011000010111000001101001'})
.then(res => res.json())
.then(res => {
console.log(res);
});
Since the SDK is already aware that the operation is multipart/form-data
, there should be no need to add the Content-Type
header into the snippet.
Metadata
Metadata
Assignees
Labels
area:coreIssues related to `core`, which is the package that powers the SDKs at runtimeIssues related to `core`, which is the package that powers the SDKs at runtimearea:snippetsIssues related to code snippetsIssues related to code snippetsbugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request