Skip to content

Commit

Permalink
fix(rubrics): Allow zero as min value for criteria weight
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroChaparro committed Nov 15, 2023
1 parent 090dbf2 commit c357944
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package requests

type AddCriteriaToObjectiveRequest struct {
Description string `json:"description" validate:"required,min=8,max=510"`
Weight float64 `json:"weight" validate:"required,numeric,min=0,max=100"`
Weight float64 `json:"weight" default:"0" validate:"numeric,min=0,max=100"`
}

0 comments on commit c357944

Please sign in to comment.