We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description Generated sdk.gen.ts for a POST endpoint that consumes multipart/form-data contains incorrect headers - .options?.headers
sdk.gen.ts
multipart/form-data
headers: { 'Content-Type': null, ...options?.headers },
Reproducible example open api spec file is here - https://stackblitz.com/edit/hey-api-client-fetch-example-kq8hhstb?file=src%2Fopenapi%2Fmy-spec.json config file is here - https://stackblitz.com/edit/hey-api-client-fetch-example-kq8hhstb?file=openapi-ts.config.ts
generated files are here - https://stackblitz.com/edit/hey-api-client-fetch-example-kq8hhstb?file=src%2Fclient%2Fsdk.gen.ts
the generated sdk.gen.ts- gives typescript error
https://stackblitz.com/edit/hey-api-client-fetch-example-kq8hhstb?file=src%2Fclient%2Fsdk.gen.ts
{ "swagger": "2.0", "info": { "version": "v023", "title": "CustomerIT STR API", "description": "The CustomerIT Store Service HTTPS API", "termsOfService": "Terms Of Service" }, "paths": { "/api/Logging/UploadLogFile": { "post": { "tags": ["Logging"], "summary": "Upload log file to the store server", "operationId": "UploadLogFile", "consumes": ["multipart/form-data"], "produces": [], "parameters": [ { "name": "file", "in": "formData", "required": false, "type": "file" } ], "responses": { "200": { "description": "Upload is successful.", "schema": { "$ref": "#/definitions/IActionResult" } }, "500": { "description": "Unhandled exception has occured. It will return an array of strings with the error messages." } } } } }, "definitions": { "IActionResult": { "type": "object", "properties": {} } } } ### System information (optional) _No response_
The text was updated successfully, but these errors were encountered:
Start a new pull request in StackBlitz Codeflow.
Sorry, something went wrong.
this seems to be fixed by upgrading to "@hey-api/openapi-ts": "^0.62.3", "@hey-api/client-axios": "^0.5.1",
No branches or pull requests
Description
Description
Generated
sdk.gen.ts
for a POST endpoint that consumesmultipart/form-data
contains incorrect headers - .options?.headersReproducible example
open api spec file is here - https://stackblitz.com/edit/hey-api-client-fetch-example-kq8hhstb?file=src%2Fopenapi%2Fmy-spec.json
config file is here - https://stackblitz.com/edit/hey-api-client-fetch-example-kq8hhstb?file=openapi-ts.config.ts
generated files are here -
https://stackblitz.com/edit/hey-api-client-fetch-example-kq8hhstb?file=src%2Fclient%2Fsdk.gen.ts
the generated sdk.gen.ts- gives typescript error
Reproducible example or configuration
https://stackblitz.com/edit/hey-api-client-fetch-example-kq8hhstb?file=src%2Fclient%2Fsdk.gen.ts
OpenAPI specification (optional)
The text was updated successfully, but these errors were encountered: