Skip to main content

Validation rules for brand asset intent including presence, validity, update restrictions, and uniqueness constraints

Intent

IntentMustBePresent

DefinitionSeverityAPISampleMode
Validate that intent is present
VIOLATION
POST_AND_PUT
S
Example Validation Report
{
"code": "VALIDATION__IntentMustBePresent",
"severity": "VIOLATION",
"message": "Field '{{field}}' must be present",
"context": {
"field": "intent"
}
}

IntentMustBeValid

DefinitionSeverityAPISampleMode
Validate that intent value is valid
VIOLATION
POST_AND_PUT
Link
S
Example Validation Report
{
"code": "VALIDATION__IntentMustBeValid",
"severity": "VIOLATION",
"message": "The value '{{value}}' for field '{{field}}' is invalid. Valid values are {{validValue}}",
"context": {
"field": "intent",
"value": "logo",
"validValue": "PLACECARD_LOGO,COVER_PHOTO"
}
}

IntentMustNotBeEmpty

DefinitionSeverityAPISampleMode
Validate that intent is not an empty string
VIOLATION
POST_AND_PUT
S

IntentMustNotBeUpdated

DefinitionSeverityAPISampleMode
Validate that intent matches the previous submittal
VIOLATION
PUT
S

OneCoverPhotoIntentMayExist

DefinitionSeverityAPISampleMode
Validate that only one (1) COVER_PHOTO asset exists
VIOLATION
POST_AND_PUT
S

OnePlaceCardLogoIntentMayExist

DefinitionSeverityAPISampleMode
Validate that only one (1) PLACECARD_LOGO asset exists
VIOLATION
POST_AND_PUT
S