Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use date-time for swagger #578

Merged
merged 1 commit into from
Dec 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/events/models/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`

Expand Down
4 changes: 2 additions & 2 deletions api/secrets/models/tls_certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions swaggerui/html/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down
Loading