Validation rules for asset captions including altText, title, locale, and content restrictions
Alt Text
CaptionsAltTextLengthMustExceedMinimum
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that altText length exceeds a minimum value (5) |
CaptionsAltTextLengthMustNotExceedMaximum
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that altText length does not exceed a maximum value (255) | Link |
CaptionsAltTextMustNotBeDummyCharacters
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that altText is not dummy characters | Link |
Example Validation Report
{
"code": "VALIDATION__CaptionsTitleMustNotBeDummyCharacters",
"severity": "VIOLATION",
"message": "'{{value}}' in '{{field}}' is dummy characters",
"context": {
"field": "altText",
"value": "No value"
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [
{
"field": "$.assetDetails.captions[0].altText",
"value": "No value"
}
],
"compared": [],
"expected": []
}
}
CaptionsAltTextMustNotBeEmpty
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that altText is not an empty string | Link |
Example Validation Report
{
"code": "VALIDATION__CaptionsAltTextMustNotBeEmpty",
"severity": "VIOLATION",
"message": "Field '{{field}}' is empty",
"context": {
"field": "altText"
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [
{
"field": "$.assetDetails.captions[0].altText"
}
],
"compared": [],
"expected": []
}
}
CaptionsAltTextMustNotBeEntirelyNumeric
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that the altText value is not entirely numeric |
Example Validation Report
{
"code": "VALIDATION__CaptionsAltTextMustNotBeEntirelyNumeric",
"severity": "VIOLATION",
"message": "'{{field}}' is '{{value}}' and is entirely numeric",
"context": {
"field": "altText",
"value": "1111111"
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [
{
"field": "$.assetDetails.captions[0].altText",
"value": "1111111"
}
],
"compared": [],
"expected": []
}
}
CaptionsAltTextMustNotIncludeVulgarWord
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that altText does not include a vulgar word |
CaptionsAltTextMustNotIncludeURL
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that altText does not include a URL | Link |
Example Validation Report
{
"code": "VALIDATION__CaptionsAltTextMustNotIncludeURL",
"severity": "VIOLATION",
"message": "'{{field}}' is '{{value}}' and includes URL",
"context": {
"field": "altText",
"value": "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
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that altText does not include an unsupported character | Link |
Captions
CaptionsMustNotBeEmptyArray
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that captions is not an empty array |
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
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that captions (recommended feature) are present | Link |
Example Validation Report
{
"code": "VALIDATION__CaptionsNotPresent",
"severity": "WARNING",
"message": "Field '{{field}}' not present",
"context": {
"field": "captions"
}
}
CountOfValuesInCaptionsListExceedsThreshold
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that the count of captions values in a list does not exceed one hundred seventy-eight (178) |
Locale
CaptionsLocaleMustBeDistinct
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that each locale is distinct |
CaptionsLocaleMustBePresent
| Preconditions |
|---|
captions is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that locale is present | Link |
Example Validation Report
{
"code": "VALIDATION__CaptionsLocaleMustBePresent",
"severity": "VIOLATION",
"message": "Field '{{field}}' must be present",
"context": {
"field": "locale"
}
}
CaptionsLocaleMustBeValid
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that locale is valid | Link |
CaptionsLocaleMustNotBeEmpty
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that locale is not an empty string |
Title
CaptionsTitleMustNotIncludeVulgarWord
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that title does not include a vulgar word |
CaptionsTitleLengthMustExceedMinimum
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that title length exceeds a minimum value (5) |
CaptionsTitleLengthMustNotExceedMaximum
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that title length does not exceed a maximum value (255) | Link |
CaptionsTitleMustNotBeDummyCharacters
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that title is not dummy characters | Link |
Example Validation Report
{
"code": "VALIDATION__CaptionsTitleMustNotBeDummyCharacters",
"severity": "VIOLATION",
"message": "'{{value}}' in '{{field}}' is dummy characters",
"context": {
"field": "title",
"value": "No value"
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [
{
"field": "$.assetDetails.captions[0].title",
"value": "No value"
}
],
"compared": [],
"expected": []
}
}
CaptionsTitleMustNotBeEmpty
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that title is not an empty string |
CaptionsTitleMustNotBeEntirelyNumeric
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that the title value is not entirely numeric |
CaptionsTitleMustNotIncludeURL
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that title does not include a URL | Link |
CaptionsTitleHasUnsupportedCharacter
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that title does not include an unsupported character | Link |