Skip to content

Commit

Permalink
improved config validation
Browse files Browse the repository at this point in the history
  • Loading branch information
sha1n committed May 22, 2021
1 parent 94b4465 commit ed745e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type ScenarioSpec struct {

// BenchmarkSpec benchmark specs top level structure
type BenchmarkSpec struct {
Scenarios []*ScenarioSpec `json:"scenarios" yaml:"scenarios" validate:"required,dive"`
Scenarios []*ScenarioSpec `json:"scenarios" yaml:"scenarios" validate:"required,min=1,dive"`
Executions int `validate:"required,gte=1"`
Alternate bool
}
Expand Down

0 comments on commit ed745e3

Please sign in to comment.