1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-08-13 20:04:49 +02:00

Chore: Add note to swagger docs about API date formats

This commit is contained in:
Ralph Slooten
2025-05-25 09:56:53 +12:00
parent 91409310d7
commit b84b428434
2 changed files with 5 additions and 4 deletions

View File

@@ -29,7 +29,8 @@ type Message struct {
Subject string Subject string
// List-Unsubscribe header information // List-Unsubscribe header information
ListUnsubscribe ListUnsubscribe ListUnsubscribe ListUnsubscribe
// Message date if set, else date received // Message RFC3339Nano date & time (if set), else date & time received
// ([extended RFC3339](https://tools.ietf.org/html/rfc3339#section-5.6) format with optional nano seconds)
Date time.Time Date time.Time
// Message tags // Message tags
Tags []string Tags []string
@@ -83,7 +84,7 @@ type MessageSummary struct {
ReplyTo []*mail.Address ReplyTo []*mail.Address
// Email subject // Email subject
Subject string Subject string
// Created time // Received RFC3339Nano date & time ([extended RFC3339](https://tools.ietf.org/html/rfc3339#section-5.6) format with optional nano seconds)
Created time.Time Created time.Time
// Message tags // Message tags
Tags []string Tags []string

View File

@@ -1488,7 +1488,7 @@
} }
}, },
"Date": { "Date": {
"description": "Message date if set, else date received", "description": "Message RFC3339Nano date \u0026 time (if set), else date \u0026 time received\n([extended RFC3339](https://tools.ietf.org/html/rfc3339#section-5.6) format with optional nano seconds)",
"type": "string", "type": "string",
"format": "date-time" "format": "date-time"
}, },
@@ -1594,7 +1594,7 @@
} }
}, },
"Created": { "Created": {
"description": "Created time", "description": "Received RFC3339Nano date \u0026 time ([extended RFC3339](https://tools.ietf.org/html/rfc3339#section-5.6) format with optional nano seconds)",
"type": "string", "type": "string",
"format": "date-time" "format": "date-time"
}, },