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:
Michael Manganiello
2025-08-20 16:29:49 -03:00
committed by GitHub
parent e810571bf1
commit 8af1e8fcba
9 changed files with 10 additions and 10 deletions

View File

@@ -3639,7 +3639,7 @@ const docTemplate = `{
},
"description": {
"type": "string",
"maxLength": 255
"maxLength": 1000
},
"name": {
"type": "string",

View File

@@ -3637,7 +3637,7 @@
},
"description": {
"type": "string",
"maxLength": 255
"maxLength": 1000
},
"name": {
"type": "string",

View File

@@ -1012,7 +1012,7 @@ definitions:
color:
type: string
description:
maxLength: 255
maxLength: 1000
type: string
name:
maxLength: 255

View File

@@ -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"`
}

View File

@@ -3637,7 +3637,7 @@
},
"description": {
"type": "string",
"maxLength": 255
"maxLength": 1000
},
"name": {
"type": "string",

View File

@@ -1012,7 +1012,7 @@ definitions:
color:
type: string
description:
maxLength: 255
maxLength: 1000
type: string
name:
maxLength: 255

View File

@@ -12,7 +12,7 @@
<FormTextArea
v-model="form.description"
:label="$t('components.label.create_modal.label_description')"
:max-length="255"
:max-length="1000"
/>
<ColorSelector v-model="form.color" :label="$t('components.label.create_modal.label_color')" :show-hex="true" />
<div class="mt-4 flex flex-row-reverse">

View File

@@ -648,7 +648,7 @@ export interface ItemUpdate {
export interface LabelCreate {
color: string;
/** @maxLength 255 */
/** @maxLength 1000 */
description: string;
/**
* @minLength 1

View File

@@ -129,7 +129,7 @@
<FormTextArea
v-model="updateData.description"
:label="$t('components.label.create_modal.label_description')"
:max-length="255"
:max-length="1000"
/>
<ColorSelector
v-model="updateData.color"