Skip to content

Commit

Permalink
removed dirpath validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirari04 committed Apr 9, 2024
1 parent 2758a93 commit d86e1a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions models/WebPage.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ type WebPage struct {
}

type WebPageCreateValidation struct {
Path string `validate:"required,dirpath,min=2,max=50"`
Path string `validate:"required,min=2,max=50"`
Title string `validate:"required,min=2,max=128"`
Html string `validate:"required,min=0,max=50000"`
ListInFooter *bool `validate:"required,boolean"`
}

type WebPageUpdateValidation struct {
WebPageID uint `validate:"required,number"`
Path string `validate:"required,dirpath,min=2,max=50"`
Path string `validate:"required,min=2,max=50"`
Title string `validate:"required,min=2,max=128"`
Html string `validate:"required,min=0,max=50000"`
ListInFooter *bool `validate:"required,boolean"`
Expand All @@ -28,5 +28,5 @@ type WebPageDeleteValidation struct {
}

type WebPageGetValidation struct {
Path string `validate:"required,dirpath,min=2,max=50" query:"Path"`
Path string `validate:"required,min=2,max=50" query:"Path"`
}

0 comments on commit d86e1a9

Please sign in to comment.