Skip to main content

Validation rules for asset captions including altText, title, locale, and content restrictions

Alt Text​

CaptionsAltTextLengthMustExceedMinimum​

DefinitionSeverityAPISampleMode
Validate that altText length exceeds a minimum value (5)
VIOLATION
POST_AND_PUT
S

CaptionsAltTextLengthMustNotExceedMaximum​

DefinitionSeverityAPISampleMode
Validate that altText length does not exceed a maximum value (255)
VIOLATION
POST_AND_PUT
Link
S

CaptionsAltTextMustNotBeDummyCharacters​

DefinitionSeverityAPISampleMode
Validate that altText is not dummy characters
VIOLATION
POST_AND_PUT
Link
S
Example Validation Report
{
"code": "VALIDATION__CaptionsAltTextMustNotBeDummyCharacters",
"severity": "VIOLATION",
"message": "'{{altText}}' must not be dummy characters",
"context": {
"altText": "No value"
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [
{
"field": "$.assetDetails.captions[0].altText",
"value": "No value"
}
],
"compared": [],
"expected": []
}
}

CaptionsAltTextMustNotBeEmpty​

DefinitionSeverityAPISampleMode
Validate that altText is not an empty string
VIOLATION
POST_AND_PUT
Link
S
Example Validation Report
{
"code": "VALIDATION__CaptionsAltTextMustNotBeEmpty",
"severity": "VIOLATION",
"message": "'{{field}}' must not be empty string",
"context": {
"field": "altText"
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [
{
"field": "$.assetDetails.captions[0].altText"
}
],
"compared": [],
"expected": []
}
}

CaptionsAltTextMustNotBeEntirelyNumeric​

DefinitionSeverityAPISampleMode
Validate that the altText value is not entirely numeric
VIOLATION
POST_AND_PUT
S
Example Validation Report
{
"code": "VALIDATION__CaptionsAltTextMustNotBeEntirelyNumeric",
"severity": "VIOLATION",
"message": "'{{altText}}' must not be entirely numeric",
"context": {
"altText": "1111111"
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [
{
"field": "$.assetDetails.captions[0].altText",
"value": "1111111"
}
],
"compared": [],
"expected": []
}
}

CaptionsAltTextMustNotIncludeVulgarWord​

DefinitionSeverityAPISampleMode
Validate that altText does not include a vulgar word
VIOLATION
POST_AND_PUT
A

CaptionsAltTextMustNotIncludeURL​

DefinitionSeverityAPISampleMode
Validate that altText does not include a URL
VIOLATION
POST_AND_PUT
Link
S
Example Validation Report
{
"code": "VALIDATION__CaptionsAltTextMustNotIncludeURL",
"severity": "VIOLATION",
"message": "'{{altText}}' must not include URL",
"context": {
"altText": "Storefront and outdoor patio with tables and chairs (https://www.example.com)"
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [
{
"field": "$.assetDetails.captions[0].altText",
"value": "Storefront and outdoor patio with tables and chairs (https://www.example.com)"
}
],
"compared": [],
"expected": []
}
}

CaptionsAltTextHasUnsupportedCharacter​

DefinitionSeverityAPISampleMode
Validate that altText does not include an unsupported character
VIOLATION
POST_AND_PUT
Link
S

Captions​

CaptionsMustNotBeEmptyArray​

DefinitionSeverityAPISampleMode
Validate that captions is not an empty array
VIOLATION
POST_AND_PUT
S
Example Validation Report
{
"code": "VALIDATION__CaptionsMustNotBeEmptyArray",
"message": "'{{field}}' must be omitted or contain at least one element; empty arrays are not allowed.",
"severity": "VIOLATION",
"context": {
"field": "captions"
},
"details": {
"compared": [],
"expected": [],
"submitted": [
{
"field": "$.assetDetails.captions",
"value": "[]"
}
],
"createdDate": "2026-03-03T13:58:43.946Z"
}
}

CaptionsNotPresent​

DefinitionSeverityAPISampleMode
Validate that captions (recommended feature) are present
WARNING
POST_AND_PUT
Link
S
Example Validation Report
{
"code": "VALIDATION__CaptionsNotPresent",
"severity": "WARNING",
"message": "New Location Asset does not include '{{captions}}' (recommended)",
"context": {
"captions": null
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [],
"compared": [],
"expected": []
}
}

CountOfValuesInCaptionsListExceedsThreshold​

DefinitionSeverityAPISampleMode
Validate that the count of captions values in a list does not exceed one hundred seventy-eight (178)
VIOLATION
POST_AND_PUT
S

Locale​

CaptionsLocaleMustBeDistinct​

DefinitionSeverityAPISampleMode
Validate that each locale is distinct
VIOLATION
POST_AND_PUT
S

CaptionsLocaleMustBePresent​

Preconditions
captions is present
DefinitionSeverityAPISampleMode
Validate that locale is present
VIOLATION
POST_AND_PUT
Link
S
Example Validation Report
{
"code": "VALIDATION__CaptionsLocaleMustBePresent",
"severity": "VIOLATION",
"message": "'{{field}}' must be present",
"context": {
"field": "locale"
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [],
"compared": [],
"expected": []
}
}

CaptionsLocaleMustBeValid​

DefinitionSeverityAPISampleMode
Validate that locale is valid
VIOLATION
POST_AND_PUT
Link
S

CaptionsLocaleMustNotBeEmpty​

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

Title​

CaptionsTitleMustNotIncludeVulgarWord​

DefinitionSeverityAPISampleMode
Validate that title does not include a vulgar word
VIOLATION
POST_AND_PUT
A

CaptionsTitleLengthMustExceedMinimum​

DefinitionSeverityAPISampleMode
Validate that title length exceeds a minimum value (5)
VIOLATION
POST_AND_PUT
S

CaptionsTitleLengthMustNotExceedMaximum​

DefinitionSeverityAPISampleMode
Validate that title length does not exceed a maximum value (255)
VIOLATION
POST_AND_PUT
Link
S

CaptionsTitleMustNotBeDummyCharacters​

DefinitionSeverityAPISampleMode
Validate that title is not dummy characters
VIOLATION
POST_AND_PUT
Link
S
Example Validation Report
{
"code": "VALIDATION__CaptionsTitleMustNotBeDummyCharacters",
"severity": "VIOLATION",
"message": "'{{title}}' must not be dummy characters",
"context": {
"title": "No value"
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [
{
"field": "$.assetDetails.captions[0].title",
"value": "No value"
}
],
"compared": [],
"expected": []
}
}

CaptionsTitleMustNotBeEmpty​

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

CaptionsTitleMustNotBeEntirelyNumeric​

DefinitionSeverityAPISampleMode
Validate that the title value is not entirely numeric
VIOLATION
POST_AND_PUT
S

CaptionsTitleMustNotIncludeURL​

DefinitionSeverityAPISampleMode
Validate that title does not include a URL
VIOLATION
POST_AND_PUT
Link
S

CaptionsTitleHasUnsupportedCharacter​

DefinitionSeverityAPISampleMode
Validate that title does not include an unsupported character
VIOLATION
POST_AND_PUT
Link
S