🐛 Fix form validation error
This commit is contained in:
		| @@ -83,7 +83,7 @@ func createProduct(c *fiber.Ctx) error { | ||||
| 	var data struct { | ||||
| 		Name         string   `json:"name" validate:"required,max=256"` | ||||
| 		Description  string   `json:"description" validate:"max=4096"` | ||||
| 		Introduction string   `json:"introduction"` | ||||
| 		Introduction string   `json:"introduction" validate:"required"` | ||||
| 		Alias        string   `json:"alias" validate:"required"` | ||||
| 		Tags         []string `json:"tags"` | ||||
| 		Attachments  []string `json:"attachments"` | ||||
| @@ -124,7 +124,7 @@ func updateProduct(c *fiber.Ctx) error { | ||||
| 		Icon         string   `json:"icon"` | ||||
| 		Name         string   `json:"name" validate:"required,max=256"` | ||||
| 		Description  string   `json:"description" validate:"max=4096"` | ||||
| 		Introduction string   `json:"introduction"` | ||||
| 		Introduction string   `json:"introduction" validate:"required"` | ||||
| 		Alias        string   `json:"alias" validate:"required"` | ||||
| 		Tags         []string `json:"tags"` | ||||
| 		Previews     []string `json:"previews"` | ||||
|   | ||||
| @@ -51,7 +51,7 @@ func createRelease(c *fiber.Ctx) error { | ||||
|  | ||||
| 	var data struct { | ||||
| 		Version     string         `json:"version" validate:"required"` | ||||
| 		Type        int            `json:"type" validate:"required"` | ||||
| 		Type        int            `json:"type"` | ||||
| 		Channel     string         `json:"channel" validate:"required"` | ||||
| 		Title       string         `json:"title" validate:"required,max=1024"` | ||||
| 		Description string         `json:"description" validate:"required,max=4096"` | ||||
| @@ -101,7 +101,7 @@ func updateRelease(c *fiber.Ctx) error { | ||||
|  | ||||
| 	var data struct { | ||||
| 		Version     string         `json:"version" validate:"required"` | ||||
| 		Type        int            `json:"type" validate:"required"` | ||||
| 		Type        int            `json:"type"` | ||||
| 		Channel     string         `json:"channel" validate:"required"` | ||||
| 		Title       string         `json:"title" validate:"required,max=1024"` | ||||
| 		Description string         `json:"description" validate:"required,max=4096"` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user