Skip to main content

Contest location status validation rules for closure dates, reopen dates, and status values

note

Additional precondition for all listed validations:

  • $.contestDetails.value.locationStatus is present

Location Status​

LocationStatusMustBePresent​

DefinitionSeverityAPISampleMode
Validate that locationStatus is present
VIOLATION
POST
S

Closed Date​

ClosedDateMustBeBeforeReopenDate​

Preconditions
status is "TEMPORARILY_CLOSED"
DefinitionSeverityAPISampleMode
Validate that the closedDate is before reopenDate
VIOLATION
POST
S

ClosedDateMustNotBeFutureTimestamp​

DefinitionSeverityAPISampleMode
Validate that closedDate is not a future timestamp
VIOLATION
POST
Link
S

ClosedDateMustBePresentWhenStatusIsClosed​

DefinitionSeverityAPISampleMode
Validate that closedDate is present when status is "CLOSED"
VIOLATION
POST
Link
S

ClosedDateMustBePresentWhenStatusIsTemporarilyClosed​

DefinitionSeverityAPISampleMode
Validate that closedDate is present when status is "TEMPORARILY_CLOSED"
VIOLATION
POST
Link
S

OnlyClosedDateMustBePresent​

DefinitionSeverityAPISampleMode
Validate that reopenDate is not present when status is "CLOSED"
VIOLATION
POST
Link
S

Reopen Date​

ReopenDateMustBePresentWhenStatusIsTempClosed​

DefinitionSeverityAPISampleMode
Validate that reopenDate is present when status is "TEMPORARILY_CLOSED"
VIOLATION
POST
Link
S

Status​

LocationStatusStatusMustBeValid​

DefinitionSeverityAPISampleMode
Validate that status value is valid
VIOLATION
POST
Link
S

LocationStatusStatusMustBePresent​

DefinitionSeverityAPISampleMode
Validate that status is present
VIOLATION
POST
S

LocationStatusStatusMustNotBeEmpty​

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