Skip to main content

Location descriptions validation rules for text content, locales, length limits, and content restrictions

Change Detection

SuspiciousRemovalOfLocationDescriptions

DefinitionSeverityAPISampleMode
Validate that locationDescriptions is present when previously submitted
WARNING
PUT
S

Location Descriptions

CountOfValuesInDescriptionsListExceedsThreshold

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

LocationDescriptionsListMustNotIncludeNulls

DefinitionSeverityAPISampleMode
Validate that a list does not include null
VIOLATION
POST_AND_PUT
S

LocationDescriptionsMustNotBeEmptyArray

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

Descriptions

LocationDescriptionsDescriptionsListMustNotIncludeNulls

DefinitionSeverityAPISampleMode
Validate that a list does not include null
VIOLATION
POST_AND_PUT
S

LocationDescriptionsNestedDescriptionsMustNotBeEmptyArray

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

Locale

DescriptionsLocaleMustBeDistinct

DefinitionSeverityAPISampleMode
Validate that each locale is distinct
VIOLATION
POST_AND_PUT
S

DescriptionsLocaleMustBePresent

Preconditions
locationDescriptions is present
DefinitionSeverityAPISampleMode
Validate that locale is present
VIOLATION
POST_AND_PUT
Link
S

DescriptionsLocaleMustBeValid

DefinitionSeverityAPISampleMode
Validate that locale is valid
VIOLATION
POST_AND_PUT
Link
S

DescriptionsLocaleMustNotBeEmpty

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

DescriptionsRequiresAtLeastOneSupportedLocale

DefinitionSeverityAPISampleMode
Validate that at least one (1) supported locale is present
VIOLATION
POST_AND_PUT
S

Text

DescriptionsTextHasSuspectedUnintentionalSequentialWordRepetition

DefinitionSeverityAPISampleMode
Validate that text does not include an unintentional repetitive sequence of words
WARNING
POST_AND_PUT
S

DescriptionsTextMustBePresent

Preconditions
locationDescriptions is present
DefinitionSeverityAPISampleMode
Validate that text is present
VIOLATION
POST_AND_PUT
Link
S

DescriptionsTextMustNotBeDummyCharacters

DefinitionSeverityAPISampleMode
Validate that text is not exclusively dummy characters
VIOLATION
POST_AND_PUT
Link
S

DescriptionsTextMustNotBeEmpty

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

DescriptionsTextNotBeEntirelyNumeric

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

DescriptionsTextMustNotExceedMaximum

DefinitionSeverityAPISampleMode
Validate that text length does not exceed a maximum value (500)
VIOLATION
POST_AND_PUT
S

DescriptionsTextMustNotIncludeURL

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

DescriptionsTextShouldNotMatch

DefinitionSeverityAPISampleMode
Validate that text does not match among different locale values
WARNING
POST_AND_PUT
S

DescriptionsText_ExpectedLangTagForCountryNotPresent

Preconditions
structuredAddress is present
DefinitionSeverityAPISampleMode
Validate that at least one (1) primary language tag is present corresponding to a language expected to be spoken in the Country identified by countryCode in structuredAddress
WARNING
POST_AND_PUT
A

DescriptionsText_ExpectedLangTagForDerivedCountryNotPresent

Preconditions
displayPoint is present
structuredAddress is not present
DefinitionSeverityAPISampleMode
Validate that at least one (1) primary language tag is present corresponding to a language expected to be spoken in the Country derived from reverse geocoding Display Point coordinates
WARNING
POST_AND_PUT
A

DescriptionsText_ExpectedRegionSubtagForDerivedCountryNotPresent

Preconditions
fullAddress is present
DefinitionSeverityAPISampleMode
Validate that at least one (1) region subtag is present that corresponds with the country derived from fullAddress
INFO
POST_AND_PUT
A

LocationDescriptionsTextHasUnsupportedCharacter

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

LocationDescriptionsTextMustNotIncludeVulgarWord

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

Type

LocationDescriptionsTypeMustBePresent

Preconditions
locationDescriptions is present
DefinitionSeverityAPISampleMode
Validate that type is present
VIOLATION
POST_AND_PUT
Link
S

LocationDescriptionsTypeMustBeValid

DefinitionSeverityAPISampleMode
Validate that type value is valid
VIOLATION
POST_AND_PUT
Link
S

LocationDescriptionsTypeMustNotBeEmpty

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