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
Adding header parameters to the OpenAPI file (https://swagger.io/docs/specification/v3_0/describing-parameters/#header-parameters) results in a TypeScript error in the SDK.
TS2783: Content-Type is specified more than once, so this usage will be overwritten. sdk. gen. ts(83, 7): This spread always overwrites this property.
Please review the provided example. I've updated the addPet operation to include a Content-Type parameter.
addPet
Content-Type
parameters: - in: header name: Content-Type schema: type: string required: true
You might need to execute npm run openapi-ts.
npm run openapi-ts
https://stackblitz.com/edit/hey-api-client-fetch-example-p13yhgc9?file=src%2Fclient%2Fsdk.gen.ts
No response
The text was updated successfully, but these errors were encountered:
Start a new pull request in StackBlitz Codeflow.
Sorry, something went wrong.
Thanks for reporting @eshlox!
No branches or pull requests
Description
Adding header parameters to the OpenAPI file (https://swagger.io/docs/specification/v3_0/describing-parameters/#header-parameters) results in a TypeScript error in the SDK.
Please review the provided example. I've updated the
addPet
operation to include aContent-Type
parameter.You might need to execute
npm run openapi-ts
.Reproducible example or configuration
https://stackblitz.com/edit/hey-api-client-fetch-example-p13yhgc9?file=src%2Fclient%2Fsdk.gen.ts
OpenAPI specification (optional)
No response
System information (optional)
No response
The text was updated successfully, but these errors were encountered: