Skip to content

Commit

Permalink
Longer title and description
Browse files Browse the repository at this point in the history
  • Loading branch information
thomiceli committed Oct 4, 2023
1 parent 632206e commit a5ab629
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/db/gist.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,16 +386,16 @@ 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"`
Content []string `form:"content"`
}

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

Expand Down

0 comments on commit a5ab629

Please sign in to comment.