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": {
"example": "2023-01-14T05:12:43",
"type": "string",
"format": "date-time"
"format": "date-time",
"x-nullable": true
},
"project": {
"description": "Project ID",

View File

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