Skip to content

Conversation

@cpvalente
Copy link
Collaborator

@cpvalente cpvalente commented Dec 17, 2024

This is a small code change to allow us using blob as a return type
We use this in the download endpoints

The code change is taken from this other fork
https://github.com/acacode/swagger-typescript-api/pull/588/files

contentTypes.some((contentType) => contentType.includes("image/")) ||
contentTypes.some((contentType) => contentType.includes("application/octet-stream"))
) {
return CONTENT_KIND.IMAGE;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably should rename this to BLOB instead of IMAGE, like this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants