Skip to content

Commit

Permalink
added parser flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirari04 committed Apr 8, 2024
1 parent f263c2a commit 9d09156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/Tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ type Tag struct {
}

type TagCreateValidation struct {
Name string `validate:"required,min=1,max=120"`
FileID uint `validate:"required,number"`
Name string `validate:"required,min=1,max=120" json:"Name" form:"Name"`
FileID uint `validate:"required,number" json:"FileID" form:"FileID"`
}

0 comments on commit 9d09156

Please sign in to comment.