diff --git a/backend/app/api/static/docs/docs.go b/backend/app/api/static/docs/docs.go index 65ab97a9..cbf1d5a8 100644 --- a/backend/app/api/static/docs/docs.go +++ b/backend/app/api/static/docs/docs.go @@ -3639,7 +3639,7 @@ const docTemplate = `{ }, "description": { "type": "string", - "maxLength": 255 + "maxLength": 1000 }, "name": { "type": "string", diff --git a/backend/app/api/static/docs/swagger.json b/backend/app/api/static/docs/swagger.json index 764c05bd..75c84cd7 100644 --- a/backend/app/api/static/docs/swagger.json +++ b/backend/app/api/static/docs/swagger.json @@ -3637,7 +3637,7 @@ }, "description": { "type": "string", - "maxLength": 255 + "maxLength": 1000 }, "name": { "type": "string", diff --git a/backend/app/api/static/docs/swagger.yaml b/backend/app/api/static/docs/swagger.yaml index cf9eae6a..e47ad0df 100644 --- a/backend/app/api/static/docs/swagger.yaml +++ b/backend/app/api/static/docs/swagger.yaml @@ -1012,7 +1012,7 @@ definitions: color: type: string description: - maxLength: 255 + maxLength: 1000 type: string name: maxLength: 255 diff --git a/backend/internal/data/repo/repo_labels.go b/backend/internal/data/repo/repo_labels.go index 6238a8b3..fab7a1ec 100644 --- a/backend/internal/data/repo/repo_labels.go +++ b/backend/internal/data/repo/repo_labels.go @@ -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"` } diff --git a/docs/en/api/openapi-2.0.json b/docs/en/api/openapi-2.0.json index 764c05bd..75c84cd7 100644 --- a/docs/en/api/openapi-2.0.json +++ b/docs/en/api/openapi-2.0.json @@ -3637,7 +3637,7 @@ }, "description": { "type": "string", - "maxLength": 255 + "maxLength": 1000 }, "name": { "type": "string", diff --git a/docs/en/api/openapi-2.0.yaml b/docs/en/api/openapi-2.0.yaml index cf9eae6a..e47ad0df 100644 --- a/docs/en/api/openapi-2.0.yaml +++ b/docs/en/api/openapi-2.0.yaml @@ -1012,7 +1012,7 @@ definitions: color: type: string description: - maxLength: 255 + maxLength: 1000 type: string name: maxLength: 255 diff --git a/frontend/components/Label/CreateModal.vue b/frontend/components/Label/CreateModal.vue index aec9dbbb..74fa1c3c 100644 --- a/frontend/components/Label/CreateModal.vue +++ b/frontend/components/Label/CreateModal.vue @@ -12,7 +12,7 @@
diff --git a/frontend/lib/api/types/data-contracts.ts b/frontend/lib/api/types/data-contracts.ts index 3ae47355..279c9a24 100644 --- a/frontend/lib/api/types/data-contracts.ts +++ b/frontend/lib/api/types/data-contracts.ts @@ -648,7 +648,7 @@ export interface ItemUpdate { export interface LabelCreate { color: string; - /** @maxLength 255 */ + /** @maxLength 1000 */ description: string; /** * @minLength 1 diff --git a/frontend/pages/label/[id].vue b/frontend/pages/label/[id].vue index 34819c64..d9abeaf4 100644 --- a/frontend/pages/label/[id].vue +++ b/frontend/pages/label/[id].vue @@ -129,7 +129,7 @@