Skip to content

Commit

Permalink
fix: custom type in swagger for DayName
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrMatsko committed Nov 29, 2024
1 parent 7e6648f commit 0c45ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datatypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ type ScheduleData struct {
// ScheduleDataDay represents week day of schedule.
type ScheduleDataDay struct {
Enabled bool `json:"enabled" example:"true"`
Name DayName `json:"name,omitempty" example:"Mon" validate:"oneof=Mon Tue Wed Thu Fri Sat Sun"`
Name DayName `json:"name,omitempty" example:"Mon" swaggertype:"string" validate:"oneof=Mon Tue Wed Thu Fri Sat Sun"`
}

// DayName represents the day name used in ScheduleDataDay.
Expand Down

0 comments on commit 0c45ef5

Please sign in to comment.