Contest location status validation rules for closure dates, reopen dates, and status values
note
Additional precondition for all listed validations:
$.contestDetails.value.locationStatusis present
Location Status
LocationStatusMustBePresent
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that locationStatus is present |
Closed Date
ClosedDateMustBeBeforeReopenDate
| Preconditions |
|---|
status is "TEMPORARILY_CLOSED" |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that the closedDate is before reopenDate |
ClosedDateMustNotBeFutureTimestamp
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that closedDate is not a future timestamp | Link |
ClosedDateMustBePresentWhenStatusIsClosed
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that closedDate is present when status is "CLOSED" | Link |
ClosedDateMustBePresentWhenStatusIsTemporarilyClosed
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that closedDate is present when status is "TEMPORARILY_CLOSED" | Link |
OnlyClosedDateMustBePresent
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that reopenDate is not present when status is "CLOSED" | Link |
Reopen Date
ReopenDateMustBePresentWhenStatusIsTempClosed
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that reopenDate is present when status is "TEMPORARILY_CLOSED" | Link |
Status
LocationStatusStatusMustBeValid
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that status value is valid | Link |
LocationStatusStatusMustBePresent
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that status is present |
LocationStatusStatusMustNotBeEmpty
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that status is not an empty string |