mirror of
https://github.com/axllent/mailpit.git
synced 2026-06-27 14:36:07 +00:00
Fix: Update Swagger response definitions for MessageHeadersResponse (#703)
This commit is contained in:
@@ -117,7 +117,7 @@ type chaosResponse struct {
|
||||
}
|
||||
|
||||
// Message headers
|
||||
// swagger:model MessageHeadersResponse
|
||||
// swagger:response MessageHeadersResponse
|
||||
type messageHeadersResponse map[string][]string
|
||||
|
||||
// Summary of messages
|
||||
|
||||
@@ -174,10 +174,7 @@
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "MessageHeadersResponse",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/MessageHeadersResponse"
|
||||
}
|
||||
"$ref": "#/responses/MessageHeadersResponse"
|
||||
},
|
||||
"400": {
|
||||
"$ref": "#/responses/ErrorResponse"
|
||||
@@ -1774,18 +1771,6 @@
|
||||
},
|
||||
"x-go-package": "github.com/axllent/mailpit/internal/storage"
|
||||
},
|
||||
"MessageHeadersResponse": {
|
||||
"description": "Message headers",
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"x-go-name": "messageHeadersResponse",
|
||||
"x-go-package": "github.com/axllent/mailpit/server/apiv1"
|
||||
},
|
||||
"MessageSummary": {
|
||||
"description": "MessageSummary struct for frontend messages",
|
||||
"type": "object",
|
||||
@@ -1875,7 +1860,7 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"messages": {
|
||||
"description": "Messages summary\nin: body",
|
||||
"description": "Messages summary",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/MessageSummary"
|
||||
@@ -2025,6 +2010,18 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"MessageHeadersResponse": {
|
||||
"description": "Message headers",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"MessagesSummaryResponse": {
|
||||
"description": "Summary of messages",
|
||||
"schema": {
|
||||
|
||||
Reference in New Issue
Block a user