Skip to main content
Feedback

XML validation policy

The xml-validation policy validates XML using an XSD schema. This policy uses javax.xml. When validation fails, the policy returns a 400 BAD REQUEST error with a custom error message body.

Timing

On Request ContentOn Response Content
X

Configuration

PropertyRequiredDescriptionTypeDefault
errorMessagenoCustom error message in XML format. You can use Spel.stringvalidation/internal
xsdSchemayesXSD schemastring

Errors

HTTP Response Code

CodeMessage
400Applies to invalid payload, invalid XSD schema, invalid error message XML format.
On this Page