Contest service hours validation rules for categories, days, times, and scheduling requirements
note
Additional precondition for all listed validations:
$.contestDetails.value.serviceHoursis present- The value of
$.contestDetails.value.serviceHoursis notnull
Day
ServiceHoursHoursByDayDayMustNotBeEmpty
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that day is not an empty string |
ServiceHoursHoursByDayDayMustBeValid
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that day value is valid | Link |
ServiceHoursHoursByDayDayMustBeDistinct
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that each day is distinct | Link |
ServiceHoursHoursByDayDayMustBePresent
| Preconditions |
|---|
serviceHours is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that day is present | Link |
Hours by Day
ServiceHoursHourByDayListMustNotIncludeNulls
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that a list does not include null |
ServiceHoursHoursByDayMustBePresent
| Preconditions |
|---|
serviceHours is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that hoursByDay is present | Link |
Service Hours
ServiceHoursListMustNotIncludeNulls
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that a list does not include null |
Category
ServiceHoursCategoryShouldBePrecise
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that category value is not a top-level category |
ServiceHoursCategoryMustBePresent
| Preconditions |
|---|
serviceHours is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that category is present | Link |
ServiceHoursCategoryMustNotBeDeprecated
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that category value is not deprecated |
ServiceHoursCategoryMustNotBeEmpty
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that category is not an empty string |
ServiceHoursCategoryMustBeValid
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that category value is valid | Link |
ServiceHoursCategoryMustBeDistinct
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that each listed category is distinct |
Times
ServiceHoursHourByDayTimesListMustNotIncludeNulls
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that a list does not include null |
ServiceHoursDaysTimesMustNotMatch
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that listed times do not match | Link |
ServiceHoursDaysTimesMustNotOverlap
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that listed times during a day do not overlap | Link |
ServiceHoursHoursByDayEndTimeMustBePresent
| Preconditions |
|---|
times is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that endTime is present | Link |
ServiceHoursHoursByDayEndTimeMustNotBeEmpty
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that endTime is not an empty string |
ServiceHoursHoursByDayEndTimeMustHaveValidFormat
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that endTime formatting is valid | Link |
ServiceHoursHoursByDayStartTimeMustBePresent
| Preconditions |
|---|
times is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that startTime is present | Link |
ServiceHoursHoursByDayStartTimeMustNotBeEmpty
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that startTime is not an empty string |
ServiceHoursHoursByDayStartTimeMustHaveValidFormat
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that startTime formatting is valid | Link |
ServiceHoursStartTimeMustNotMatchEndTime
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that startTime formatting is valid | Link |
ServiceHoursTimesMustBePresent
| Preconditions |
|---|
serviceHours is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that times is present |