Skip to content
This repository was archived by the owner on Dec 7, 2023. It is now read-only.

Commit 8fe3f1d

Browse files
committed
Added requirement property to point fields
1 parent af23f52 commit 8fe3f1d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

services/event/models/event.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ type Event struct {
99
Locations []EventLocation `json:"locations" validate:"required,dive,required"`
1010
Sponsor string `json:"sponsor"`
1111
EventType string `json:"eventType" validate:"required,oneof=MEAL SPEAKER WORKSHOP MINIEVENT QNA OTHER"`
12-
InPersonPoints int `json:"inPersonPoints"`
13-
InPersonVirtPoints int `json:"inPersonVirtPoints"`
14-
VirtualPoints int `json:"virtualPoints"`
12+
InPersonPoints int `json:"inPersonPoints" validate:"required"`
13+
InPersonVirtPoints int `json:"inPersonVirtPoints" validate:"required"`
14+
VirtualPoints int `json:"virtualPoints" validate:"required"`
1515
}
1616

1717
type EventLocation struct {

0 commit comments

Comments
 (0)