Schema Validated Mention Filter
class SchemaValidatedMentionFilter constructor(dataDictionary: <Error class: unknown class>, propertyName: String = "name") : MentionFilter
Schema-driven mention filter that uses DataDictionary validation rules.
Looks up the entity type in the DataDictionary and applies validation rules defined in the ValidatedPropertyDefinition.
Example type-safe schema definition:
val companyType = DynamicType(
name = "Company",
ownProperties = listOf(
ValidatedPropertyDefinition(
name = "name",
validationRules = listOf(
NoVagueReferences(),
LengthConstraint(maxLength = 150)
)
)
)
)Content copied to clipboard