Skip to content

Commit

Permalink
🐛 [MTA-1726] Migration Waves: require start and end date, require end…
Browse files Browse the repository at this point in the history
… > start (#604)

Fixes https://issues.redhat.com/browse/MTA-1726

Signed-off-by: Sam Lucidi <slucidi@redhat.com>
  • Loading branch information
mansam committed Feb 27, 2024
1 parent 2388891 commit da36be0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/migrationwave.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit da36be0

Please sign in to comment.