You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating a (axios) client for an endpoint with a binary response type (i.e content-type=application/octet-stream), the generated response type is Blob: export type GetSomethingResponse = (Blob | File);
However, at runtime, the query result.data type is a string.
Expected behavior
The query should return a Blob or File value as expected for binary responses.
Version: 1.6.2
Additional context
It looks like this issue has been fixed in @hey-api/openapi-ts v0.59.2 hey-api/openapi-ts#1420 . Would it be possible to bump the dependency to that version, or is there a workaround for that situation?
The text was updated successfully, but these errors were encountered:
Describe the bug
When generating a (axios) client for an endpoint with a binary response type (i.e content-type=application/octet-stream), the generated response type is Blob:
export type GetSomethingResponse = (Blob | File);
However, at runtime, the query
result.data
type is astring
.Expected behavior
The query should return a Blob or File value as expected for binary responses.
Version: 1.6.2
Additional context
It looks like this issue has been fixed in @hey-api/openapi-ts v0.59.2 hey-api/openapi-ts#1420 . Would it be possible to bump the dependency to that version, or is there a workaround for that situation?
The text was updated successfully, but these errors were encountered: