Use the XML Validator policy to validate a request against a an XML XSD schema. You can upload a an XML XSD schema file in the Policy dialog as a valid swagger XML document. If an invalid path or parameter or object is not defined in the XML schema, the client receives a Schema Validation Failed
error.
...
Parameter Name | Description | Default Value | Example | ||
---|---|---|---|---|---|
Label | Required. The name for the API policy. | XML XSD Validator | Task XML XSD Validator | ||
When this policy should be applied | An expression enabled field that determines the condition to be fulfilled for the API policy to execute. For example, if the value in this field is request.method == "POST", the API policy is executed only if the request method is a POST. | True | request.method == "POST" | ||
Edit XMLXSD | Launches the XML editor which allows you to define XML. The editor loads an existing XML document if defined previously. The editor lets you save XML in SnapLogic's file system or import existing XML documents from it. | Empty XML file |
| ||
Hide/Render WhiteSpace: Formats XML with watermarked dots or plain white space between the characters. | |||||
Format Code: Formats text in XML | |||||
Status | Indicates whether the API policy is enabled or disabled. | Enabled | Disabled |
...