Skip to content

Commit 70aed4f

Browse files
authored
Merge pull request #1073 from 3rabiii/fix-trip-details_issue_6
fix: omit schedule field from trip-details response when nil
2 parents 67c3ee2 + 4a693d2 commit 70aed4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/models/trip_details.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "time"
44

55
type TripDetails struct {
66
Frequency *Frequency `json:"frequency,omitempty"` // omitempty intentional: trip-details callers expect the field absent when the trip is not frequency-based
7-
Schedule *Schedule `json:"schedule"`
7+
Schedule *Schedule `json:"schedule,omitempty"`
88
ServiceDate ModelTime `json:"serviceDate"`
99
SituationIDs []string `json:"situationIds"`
1010
Status *TripStatus `json:"status,omitempty"`

0 commit comments

Comments
 (0)