mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2026-01-01 02:27:32 +01:00
fix: Allow up to 1000 characters for label description (#948)
The database schema already supports 1,000 characters for label description, so this seems just like an oversight.
This commit is contained in:
committed by
GitHub
parent
e810571bf1
commit
8af1e8fcba
@@ -3639,7 +3639,7 @@ const docTemplate = `{
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"maxLength": 255
|
||||
"maxLength": 1000
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
|
||||
@@ -3637,7 +3637,7 @@
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"maxLength": 255
|
||||
"maxLength": 1000
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
|
||||
@@ -1012,7 +1012,7 @@ definitions:
|
||||
color:
|
||||
type: string
|
||||
description:
|
||||
maxLength: 255
|
||||
maxLength: 1000
|
||||
type: string
|
||||
name:
|
||||
maxLength: 255
|
||||
|
||||
@@ -20,14 +20,14 @@ type LabelRepository struct {
|
||||
type (
|
||||
LabelCreate struct {
|
||||
Name string `json:"name" validate:"required,min=1,max=255"`
|
||||
Description string `json:"description" validate:"max=255"`
|
||||
Description string `json:"description" validate:"max=1000"`
|
||||
Color string `json:"color"`
|
||||
}
|
||||
|
||||
LabelUpdate struct {
|
||||
ID uuid.UUID `json:"id"`
|
||||
Name string `json:"name" validate:"required,min=1,max=255"`
|
||||
Description string `json:"description" validate:"max=255"`
|
||||
Description string `json:"description" validate:"max=1000"`
|
||||
Color string `json:"color"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user