From 9d091563c276693cb42ce83af443321d08180f34 Mon Sep 17 00:00:00 2001 From: kirari04 Date: Mon, 8 Apr 2024 11:05:28 +0200 Subject: [PATCH] added parser flags --- models/Tag.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/Tag.go b/models/Tag.go index 1ebb817..dd5de42 100644 --- a/models/Tag.go +++ b/models/Tag.go @@ -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"` }