diff --git a/api/events/models/event.go b/api/events/models/event.go index ae5252bb..cf5a17cf 100644 --- a/api/events/models/event.go +++ b/api/events/models/event.go @@ -36,7 +36,7 @@ type Event struct { // The time (ISO8601) at which the event was last recorded // - // swagger:strfmt date + // swagger:strfmt date-time // example: 2020-11-05T13:25:07.000Z LastTimestamp time.Time `json:"lastTimestamp"` diff --git a/api/secrets/models/tls_certificate.go b/api/secrets/models/tls_certificate.go index ad2e98ff..3a23fed7 100644 --- a/api/secrets/models/tls_certificate.go +++ b/api/secrets/models/tls_certificate.go @@ -22,13 +22,13 @@ type TLSCertificate struct { // NotBefore defines the lower date/time validity boundary // // required: true - // swagger:strfmt date + // swagger:strfmt date-time // example: 2022-08-09T00:00:00Z NotBefore time.Time `json:"notBefore"` // NotAfter defines the uppdater date/time validity boundary // // required: true - // swagger:strfmt date + // swagger:strfmt date-time // example: 2023-08-25T23:59:59Z NotAfter time.Time `json:"notAfter"` // DNSNames defines list of Subject Alternate Names in the certificate diff --git a/swaggerui/html/swagger.json b/swaggerui/html/swagger.json index 7e1928cb..699bf830 100644 --- a/swaggerui/html/swagger.json +++ b/swaggerui/html/swagger.json @@ -6023,7 +6023,7 @@ "lastTimestamp": { "description": "The time (ISO8601) at which the event was last recorded", "type": "string", - "format": "date", + "format": "date-time", "x-go-name": "LastTimestamp" }, "message": { @@ -7390,13 +7390,13 @@ "notAfter": { "description": "NotAfter defines the uppdater date/time validity boundary", "type": "string", - "format": "date", + "format": "date-time", "x-go-name": "NotAfter" }, "notBefore": { "description": "NotBefore defines the lower date/time validity boundary", "type": "string", - "format": "date", + "format": "date-time", "x-go-name": "NotBefore" }, "subject": {