1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-07-15 01:25:10 +02:00

Swagger: Revert BinaryResponse type to string

Go-swagger does not appear to support `"format": "binary"`, and `"$ref": "#/definitions/File"` doesn't seem to be supported. Resolves #188
This commit is contained in:
Ralph Slooten
2023-11-19 14:56:27 +13:00
parent d013158ac3
commit ad91c10744
2 changed files with 4 additions and 14 deletions

View File

@ -809,11 +809,6 @@
"x-go-name": "deleteMessagesRequestBody",
"x-go-package": "github.com/axllent/mailpit/server/apiv1"
},
"File": {
"type": "object",
"title": "File represents an open file descriptor.",
"x-go-package": "os"
},
"HTMLCheckResponse": {
"description": "Response represents the HTML check response struct",
"type": "object",
@ -1387,11 +1382,11 @@
"BinaryResponse": {
"description": "Binary data response inherits the attachment's content type",
"schema": {
"$ref": "#/definitions/File"
"type": "string"
}
},
"ErrorResponse": {
"description": "Error response",
"description": "HTTP error response will return with a \u003e= 400 response code",
"schema": {
"type": "string"
}