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
Buffer
Operations which produce octet/stream responses will be resolved into generated definitions using Buffer as defined in #293
octet/stream
This breaks the build of SDK packages as Buffer is not a native Typescript type
Example
swagger: '2.0' info: version: 1.0.0 title: API host: localhost basePath: /api/v1 schemes: - https paths: /mypath: get: summary: An endpoint produces: - application/octet-stream responses: '200': description: Success schema: format: binary type: string '400': description: Bad Request '500': description: Internal Server Error
requestTypes.ts:2047:8 - error TS4016: Type parameter 'A0' of exported function has or is using private name 'Buffer'.
The text was updated successfully, but these errors were encountered:
The easier solution would be to add @types/node as a dev dependency of the generated package. I have some concerns:
@types/node
Sorry, something went wrong.
No branches or pull requests
Operations which produce
octet/stream
responses will be resolved into generated definitions usingBuffer
as defined in #293This breaks the build of SDK packages as
Buffer
is not a native Typescript typeExample
The text was updated successfully, but these errors were encountered: