PropertyValidatorAuditor
The info.magnolia.services.seo.audit.impl.PropertyValidationAuditor is a companion to I18NPropertyValidationAuditor
. This auditor checks the values of a designated property. Use I18NPropertyValidationAuditor to check the values of internationalized properties (properties with language variants).
- Class
-
info.magnolia.services.seo.audit.impl.PropertyValidationAuditor
Properties
In addition to the common auditor properties, this auditor can be configured with the following properties:
Property | Description |
---|---|
|
required Defines the node property name to be checked. |
|
optional Determines how a failed audit will be counted:
|
|
optional Defines a validation pattern as a Java regular expression to validate the property for a particular language. If the property values does not match the value pattern for the language the audit will fail. |
Example
Here is an example from the SEO module. You can find this configuration here: /modules/seo/config/auditManager/auditors/metaKeywordsValid
.
metaKeywordsValid:
active: true
class: info.magnolia.services.seo.audit.impl.PropertyValidationAuditor
description: Check for valid meta keywords (pre-prod)
propertyName: keywords
valuePattern: .{2,},.{2,},.+