Skip to content

Commit a67f9d4

Browse files
committed
fix: update validation tags for TimeBoundariesRequest fields
1 parent e776d42 commit a67f9d4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

common-lib/utils/TimeUtils.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ func (timeRange *TimeRangeRequest) ParseAndValidateTimeRange() (*TimeRangeReques
110110

111111
// TimeBoundariesRequest represents the request for time boundary frames
112112
type TimeBoundariesRequest struct {
113-
TimeWindowBoundaries []string `json:"timeWindowBoundaries" schema:"timeWindowBoundaries" validate:"omitempty, min=1"`
114-
TimeWindow *TimeWindows `json:"timeWindow" schema:"timeWindow" validate:"omitempty, oneof=week month quarter year"` // week, month, quarter, year
115-
Iterations int `json:"iterations" schema:"iterations" validate:"omitempty, min=1"`
113+
TimeWindowBoundaries []string `json:"timeWindowBoundaries" schema:"timeWindowBoundaries" validate:"omitempty,min=1"`
114+
TimeWindow *TimeWindows `json:"timeWindow" schema:"timeWindow" validate:"omitempty,oneof=week month quarter year"` // week, month, quarter, year
115+
Iterations int `json:"iterations" schema:"iterations" validate:"omitempty,min=1"`
116116
}
117117

118118
// TimeWindowBoundaries represents the start and end times for a time window

0 commit comments

Comments
 (0)