From 0341c349c176d1a0db129560dd4ecc3c4ca9eb73 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Thu, 28 Sep 2023 01:40:38 +0300 Subject: fix: 0 score count summaries give false binding required error (#104) Former-commit-id: 41cf94a810c83b0eb4d54996b727bb24910994b9 --- backend/handlers/mod.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend') diff --git a/backend/handlers/mod.go b/backend/handlers/mod.go index 95b37c8..f55784a 100644 --- a/backend/handlers/mod.go +++ b/backend/handlers/mod.go @@ -15,7 +15,7 @@ type CreateMapSummaryRequest struct { Description string `json:"description" binding:"required"` Showcase string `json:"showcase"` UserName string `json:"user_name" binding:"required"` - ScoreCount *int `json:"score_count" binding:"required"` + ScoreCount *int `json:"score_count"` RecordDate time.Time `json:"record_date" binding:"required"` } @@ -24,7 +24,7 @@ type EditMapSummaryRequest struct { Description string `json:"description" binding:"required"` Showcase string `json:"showcase"` UserName string `json:"user_name" binding:"required"` - ScoreCount int `json:"score_count" binding:"required"` + ScoreCount int `json:"score_count"` RecordDate time.Time `json:"record_date" binding:"required"` } -- cgit v1.2.3