Skip to main content

Validation rules for asset classifications including distinctness, content restrictions, and array requirements

Classifications​

CountOfItemsInClassificationsListExceedsThreshold​

DefinitionSeverityAPISampleMode
Validate that the count of items in a list does not exceed fifty (50)
VIOLATION
POST_AND_PUT
S

ClassificationsMustBeDistinct​

DefinitionSeverityAPISampleMode
Validate that each classification is distinct
VIOLATION
POST_AND_PUT
S

ClassificationsMustNotBeDummyCharacters​

DefinitionSeverityAPISampleMode
Validate that classifications is not dummy characters
VIOLATION
POST_AND_PUT
Link
S
Dummy Characters List
No name, No Name, no name, no Name, NO NAME, Unknown, unknown, UNKNOWN, No value, No Value

ClassificationsMustNotBeEmpty​

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

ClassificationsMustNotBeEmptyArray​

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

ClassificationsMustNotBeEntirelyNumeric​

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

ClassificationsMustNotIncludeURL​

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

ClassificationsMustNotIncludeVulgarWord​

DefinitionSeverityAPISampleMode
Validate that classifications does not include a localized or universally vulgar word
VIOLATION
POST_AND_PUT
A

ClassificationsHasUnsupportedCharacter​

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

ClassificationsListMustNotIncludeNulls​

DefinitionSeverityAPISampleMode
Validate that classifications does not include null
VIOLATION
POST_AND_PUT
S
Example Validation Report
{
"code": "VALIDATION__ClassificationsListMustNotIncludeNulls",
"severity": "VIOLATION",
"message": "'classifications' list includes null",
"details": {
"createdDate": "2026-03-03T13:58:43.946Z",
"submitted": [],
"compared": [],
"expected": []
}
}