Content-type/Accept | Schema validation type |
application/json application/json/badgerfish | JSON schema |
application/xml text/xml text/html | XML schema |
text/plain | Regular expression |
Property | Description |
Schema | Validates the response payload against the appropriate schema. 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 names 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 about 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. |
HTTP Headers | Validates the HTTP header parameters in the incoming response against the HTTP headers defined in that response's API Specification. 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. As this property supports variable framework, you can make use of the available variables to specify the header value. For details about the variables available in API Gateway, see
Variables Available in API Gateway. You can add more HTTP headers by clicking . |