diff --git a/internal/http/request/cert.go b/internal/http/request/cert.go index fc1c69c1..8588b986 100644 --- a/internal/http/request/cert.go +++ b/internal/http/request/cert.go @@ -16,7 +16,7 @@ type CertCreate struct { type CertUpdate struct { ID uint `form:"id" json:"id" validate:"required|exists:certs,id"` - Type string `form:"type" json:"type" validate:"required|in:P256,P384,2048,3072,4096"` + Type string `form:"type" json:"type" validate:"required|in:P256,P384,2048,3072,4096,upload"` Domains []string `form:"domains" json:"domains" validate:"required|isSlice"` Cert string `form:"cert" json:"cert"` Key string `form:"key" json:"key"`