Skip to content

Commit

Permalink
add validation case for browser (#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterschretlen authored Jul 5, 2024
1 parent 7b5a447 commit db349fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/pb/synthetic_monitoring/checks_extra.go
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,11 @@ func (s CheckSettings) Validate() error {
validateFn = s.Grpc.Validate
}

if s.Browser != nil {
settingsCount++
validateFn = s.Browser.Validate
}

if settingsCount != 1 {
return ErrInvalidCheckSettings
}
Expand Down

0 comments on commit db349fd

Please sign in to comment.