From 153949929433dbceffda411b9ff5a2e08fe5db92 Mon Sep 17 00:00:00 2001 From: Thomas Miceli <27960254+thomiceli@users.noreply.github.com> Date: Wed, 4 Oct 2023 18:48:02 +0200 Subject: [PATCH] Longer title and description (#129) --- internal/db/gist.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/db/gist.go b/internal/db/gist.go index aba16c8..d54007f 100644 --- a/internal/db/gist.go +++ b/internal/db/gist.go @@ -386,8 +386,8 @@ func (gist *Gist) UpdatePreviewAndCount() error { // -- DTO -- // type GistDTO struct { - Title string `validate:"max=50" form:"title"` - Description string `validate:"max=150" form:"description"` + Title string `validate:"max=250" form:"title"` + Description string `validate:"max=1000" form:"description"` Private int `validate:"number,min=0,max=2" form:"private"` Files []FileDTO `validate:"min=1,dive"` Name []string `form:"name"` @@ -395,7 +395,7 @@ type GistDTO struct { } type FileDTO struct { - Filename string `validate:"excludes=\x2f,excludes=\x5c,max=50"` + Filename string `validate:"excludes=\x2f,excludes=\x5c,max=255"` Content string `validate:"required"` }