Skip to main content

Contest service hours validation rules for categories, days, times, and scheduling requirements

note

Additional precondition for all listed validations:

  • $.contestDetails.value.serviceHours is present
  • The value of $.contestDetails.value.serviceHours is not null

Day​

ServiceHoursHoursByDayDayMustNotBeEmpty​

DefinitionSeverityAPISampleMode
Validate that day is not an empty string
VIOLATION
POST
S

ServiceHoursHoursByDayDayMustBeValid​

DefinitionSeverityAPISampleMode
Validate that day value is valid
VIOLATION
POST
Link
S

ServiceHoursHoursByDayDayMustBeDistinct​

DefinitionSeverityAPISampleMode
Validate that each day is distinct
VIOLATION
POST
Link
S

ServiceHoursHoursByDayDayMustBePresent​

Preconditions
serviceHours is present
DefinitionSeverityAPISampleMode
Validate that day is present
VIOLATION
POST
Link
S

Hours by Day​

ServiceHoursHourByDayListMustNotIncludeNulls​

DefinitionSeverityAPISampleMode
Validate that a list does not include null
VIOLATION
POST
S

ServiceHoursHoursByDayMustBePresent​

Preconditions
serviceHours is present
DefinitionSeverityAPISampleMode
Validate that hoursByDay is present
VIOLATION
POST
Link
S

Service Hours​

ServiceHoursListMustNotIncludeNulls​

DefinitionSeverityAPISampleMode
Validate that a list does not include null
VIOLATION
POST
S

Category​

ServiceHoursCategoryShouldBePrecise​

DefinitionSeverityAPISampleMode
Validate that category value is not a top-level category
WARNING
POST
S

ServiceHoursCategoryMustBePresent​

Preconditions
serviceHours is present
DefinitionSeverityAPISampleMode
Validate that category is present
VIOLATION
POST
Link
S

ServiceHoursCategoryMustNotBeDeprecated​

DefinitionSeverityAPISampleMode
Validate that category value is not deprecated
VIOLATION
POST
S

ServiceHoursCategoryMustNotBeEmpty​

DefinitionSeverityAPISampleMode
Validate that category is not an empty string
VIOLATION
POST
S

ServiceHoursCategoryMustBeValid​

DefinitionSeverityAPISampleMode
Validate that category value is valid
VIOLATION
POST
Link
S

ServiceHoursCategoryMustBeDistinct​

DefinitionSeverityAPISampleMode
Validate that each listed category is distinct
VIOLATION
POST
S

Times​

ServiceHoursHourByDayTimesListMustNotIncludeNulls​

DefinitionSeverityAPISampleMode
Validate that a list does not include null
VIOLATION
POST
S

ServiceHoursDaysTimesMustNotMatch​

DefinitionSeverityAPISampleMode
Validate that listed times do not match
VIOLATION
POST
Link
S

ServiceHoursDaysTimesMustNotOverlap​

DefinitionSeverityAPISampleMode
Validate that listed times during a day do not overlap
VIOLATION
POST
Link
S

ServiceHoursHoursByDayEndTimeMustBePresent​

Preconditions
times is present
DefinitionSeverityAPISampleMode
Validate that endTime is present
VIOLATION
POST
Link
S

ServiceHoursHoursByDayEndTimeMustNotBeEmpty​

DefinitionSeverityAPISampleMode
Validate that endTime is not an empty string
VIOLATION
POST
S

ServiceHoursHoursByDayEndTimeMustHaveValidFormat​

DefinitionSeverityAPISampleMode
Validate that endTime formatting is valid
VIOLATION
POST
Link
S

ServiceHoursHoursByDayStartTimeMustBePresent​

Preconditions
times is present
DefinitionSeverityAPISampleMode
Validate that startTime is present
VIOLATION
POST
Link
S

ServiceHoursHoursByDayStartTimeMustNotBeEmpty​

DefinitionSeverityAPISampleMode
Validate that startTime is not an empty string
VIOLATION
POST
S

ServiceHoursHoursByDayStartTimeMustHaveValidFormat​

DefinitionSeverityAPISampleMode
Validate that startTime formatting is valid
VIOLATION
POST
Link
S

ServiceHoursStartTimeMustNotMatchEndTime​

DefinitionSeverityAPISampleMode
Validate that startTime formatting is valid
VIOLATION
POST
Link
S

ServiceHoursTimesMustBePresent​

Preconditions
serviceHours is present
DefinitionSeverityAPISampleMode
Validate that times is present
VIOLATION
POST
S