fix(server): use thumbnail content type instead of application/octet-stream (#3075)

* asset mimetype instead of application/octet-stream

* use thumbnail mimetype instead

* narrowed openapi spec

* thumbnail format validation

* JPEG fallback, `getThumbnailPath` returns format

* return content type in `getThumbnailPath`

* moved `format` validation to dto

* removed unused import

* moved fallback warning
This commit is contained in:
Mert
2023-07-06 11:27:21 -04:00
committed by GitHub
parent 6f4449d5e9
commit 3cc77d945b
7 changed files with 21 additions and 16 deletions

View File

@@ -1673,7 +1673,13 @@
"responses": {
"200": {
"content": {
"application/octet-stream": {
"image/jpeg": {
"schema": {
"type": "string",
"format": "binary"
}
},
"image/webp": {
"schema": {
"type": "string",
"format": "binary"
@@ -2704,7 +2710,7 @@
"responses": {
"200": {
"content": {
"application/octet-stream": {
"image/jpeg": {
"schema": {
"type": "string",
"format": "binary"