[**@bondsports/general**](../README.md) • **Docs**

***

[@bondsports/general](../globals.md) / validateSchedule

# Function: validateSchedule()

> **validateSchedule**\<`T`\>(`activityTimes`, `breakOnFirst`): `T`[]

Validates the schedule by checking for overlapping activity times.

## Type Parameters

• **T** *extends* `ActivityTimeDto`

## Parameters

• **activityTimes**: `T`[]

An array of activity times to validate.

• **breakOnFirst**: `boolean` = `false`

A boolean indicating whether to break on the first error.

## Returns

`T`[]

A boolean indicating whether the schedule is valid or not.

## Defined in

[validations/pricing/schedule.validation.ts:43](https://github.com/Bond-Sports/bondUtils/blob/545f16ceb055481acfd7641d7809c0f252d3a5e6/packages/general/src/validations/pricing/schedule.validation.ts#L43)
