You can use the xml-validation
policy to validate XML using an XSD schema. This policy uses javax.xml
.
A 400 BAD REQUEST error is received with a custom error message body with a custom error message body when validation fails.
Injects processing report messages into request metrics for analytics.
Property | Required | Description | Type | Default |
---|---|---|---|---|
errorMessage |
Custom error message in XML format. Spel is allowed. |
string |
validation/internal |
|
xsdSchema |
X |
Xsd schema. |
string |