Content-type/Accept | Schema validation type |
application/json application/json/badgerfish | JSON schema |
application/xml text/xml text/html | XML schema |
text/plain | Regex schema |
Parameter | Description |
Schema | Validates the response payload against the appropriate schema (based on the Content-type header in request or Accept header in response). Provide the following additional features for XML schema validation: Feature name. Specifies the name of the feature for XML parsing when performing XML schema validation. Select the required feature name from the list: GENERATE_SYNTHETIC_ANNOTATIONS ID_IDREF_CHECKING IDENTITY_CONSTRAINT_CHECKING IGNORE_XSL_TYPE NAMESPACE_GROWTH NORMALIZE_DATA ROOT_ELEMENT_DECL ROOT_TYPE_DEF SIGMA_AUGMENT_PSVI SCHEMA_DV_FACTORY SCHEMA_ELEMENT_DEFAULT SCHEMA_LOCATION SCHEMA_NONS_LOCATION SCHEMA_VALIDATOR TOLERATE_DUPLICATES ENPARSED_ENTITY_CHECKING VALIDATE_ANNOTATIONS XML_SCHEMA_FULL_CHECKING XMLSCHEMA_VALIDATION For details about XML parsing features, see
http://xerces.apache.org/xerces2-j/features.html and for details on the exact constants, see
https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/parsers/XML11Configuration.html. Feature value. Specifies whether the feature value is True or False. |
Content-types | Validates the content-types in the incoming response against the content-types defined in that response's API Specification. The configuration is provided in the API details page. |
HTTP Headers | Validates the HTTP header parameters in the incoming response against the HTTP headers defined in that response's API Specification. The configuration is provided in the API details page. Provide the following information: Condition: Specifies the logical operator to use to validate multiple HTTP headers in the incoming API responses. Available values are: AND. API Gateway accepts only the responses that contain all configured HTTP headers. OR. This is selected by default. API Gateway accepts responses that contain at least one configured HTTP header. HTTP Header Key. Specifies a key that must be passed through the HTTP header of the incoming API responses. Header Value. Optional. Specifies the corresponding key value that could be passed through the HTTP header of the incoming API responses. The Header Value field type accepts string and regular expression (regex). You can add more HTTP headers by clicking . |