diff --git a/api/spec.go b/api/spec.go index 116de4b..8b1b371 100644 --- a/api/spec.go +++ b/api/spec.go @@ -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 }