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

propertyName

required

Defines the node property name to be checked.

level

optional

Determines how a failed audit will be counted:

  • Error (auditErrors)

  • Warning (auditWarnings)

  • Note (auditNotes)

valuePattern

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,},.+
Feedback

DX Core

×

Location

This widget lets you know where you are on the docs site.

You are currently perusing through the SEO module docs.

Main doc sections

DX Core Headless PaaS Legacy Cloud Incubator modules