Show Table of Contents
3.10. Configuring Validation Rules
To configure a validation rule you need to specify the following:
- executeOn: this is the fragment on which the rule is to be executed.
- excecuteOnNS: this is the fragment namespace to which the
executeOnbelongs. - name: this is the name of the rule to be applied. This is a composite rule name that refers to a ruleBase and ruleName combination in a dot delimited format (in other words
ruleBaseName.ruleName). - onFail: this determines the severity of a failed match.
Here is a sample validation rule configuration:
<validation:rule executeOn="order/header/email" name="regexAddressing.email" onFail="ERROR" />

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.