From 0c45ef57f29ac3c357187f93fdd9f853ef0d43a9 Mon Sep 17 00:00:00 2001 From: AleksandrMatsko Date: Fri, 29 Nov 2024 14:40:37 +0700 Subject: [PATCH] fix: custom type in swagger for DayName --- datatypes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datatypes.go b/datatypes.go index a9f317563..938c10068 100644 --- a/datatypes.go +++ b/datatypes.go @@ -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.