diff --git a/internal/web_server/handlers/subscriptions.go b/internal/web_server/handlers/subscriptions.go index ab2af279..620ed605 100644 --- a/internal/web_server/handlers/subscriptions.go +++ b/internal/web_server/handlers/subscriptions.go @@ -23,7 +23,7 @@ type createPlanReq struct { Category string `json:"category" validate:"required,oneof=LEARN_ENGLISH IELTS DUOLINGO"` DurationValue int32 `json:"duration_value"` DurationUnit string `json:"duration_unit"` - Price float64 `json:"price" validate:"required,min=0"` + Price float64 `json:"price" validate:"gte=0"` Currency string `json:"currency" validate:"required"` IsLifetime bool `json:"is_lifetime"` IsActive *bool `json:"is_active"`