diff --git a/api/migrationwave.go b/api/migrationwave.go index 24835e5e9..8651a369e 100644 --- a/api/migrationwave.go +++ b/api/migrationwave.go @@ -182,8 +182,8 @@ func (h MigrationWaveHandler) Delete(ctx *gin.Context) { type MigrationWave struct { Resource `yaml:",inline"` Name string `json:"name"` - StartDate time.Time `json:"startDate" yaml:"startDate"` - EndDate time.Time `json:"endDate" yaml:"endDate"` + StartDate time.Time `json:"startDate" yaml:"startDate" binding:"required"` + EndDate time.Time `json:"endDate" yaml:"endDate" binding:"required,gtfield=StartDate"` Applications []Ref `json:"applications"` Stakeholders []Ref `json:"stakeholders"` StakeholderGroups []Ref `json:"stakeholderGroups" yaml:"stakeholderGroups"`