fix: support nullable end times on timesheet creation

See https://github.com/kimai/kimai/issues/3720
This commit is contained in:
decentral1se 2023-01-18 20:45:31 +01:00
parent fb987ec70c
commit adcc0c7317
No known key found for this signature in database
GPG Key ID: 03789458B3D0C410
2 changed files with 3 additions and 2 deletions

View File

@ -4231,7 +4231,8 @@
"end": { "end": {
"example": "2023-01-14T05:12:43", "example": "2023-01-14T05:12:43",
"type": "string", "type": "string",
"format": "date-time" "format": "date-time",
"x-nullable": true
}, },
"project": { "project": {
"description": "Project ID", "description": "Project ID",

View File

@ -38,7 +38,7 @@ type TimesheetEditForm struct {
// end // end
// Example: 2023-01-14T05:12:43 // Example: 2023-01-14T05:12:43
// Format: date-time // Format: date-time
End strfmt.DateTime `json:"end,omitempty"` End *strfmt.DateTime `json:"end,omitempty"`
// exported // exported
Exported bool `json:"exported,omitempty"` Exported bool `json:"exported,omitempty"`