JSON Schema And Payload Size Validation Connector Configuration Values
Configuration Values
The following configuration values can be defined while configuring JSON Schema And Payload Size Validation Connector on the Call Transformation page:
| Field name | Type | Field Value | Required/Optional | Description |
|---|---|---|---|---|
| Processing Adapter | String | com.mashery.proxy.customer.generic.json-schema-validator | Required | Adapter used to validate the request against the configured JSON schema and payload size limits. |
| Perform Pre-processing or Perform Post-processing | Boolean | Enabled | Optional | When enabled for pre-processing, validates the incoming API request before it is forwarded for further processing. When enabled for post-processing, validates the backend response after request processing is complete. |
| Data to make available for pre-processing (PreInput Value) or Data to make available for post-processing (PostInput Value) | Map | — | Required | Specifies the input data made available to the pre-processing or post-processing adapter. |
| — | max_payload_size: <size in kb> | Optional | Specify <size in kb>. Maximum allowed payload size. | |
| — | fail_safe: <flag> | Optional | Specify <flag>. Default is false. Any value besides true is treated as false. | |
| — | override_custom_error_message: <flag> | Optional | Specify <flag>. Default is false. Enables static custom messages and overrides the connector runtime message. |
Examples
Data to make available for pre-processing or post-processing
The following is an example value for Data to make available for pre-processing field or Data to make available for post-processing field.
max_payload_size : 600
fail_safe : true
override_custom_error_message : true
Configuration Steps
Refer to the Configuring Call Transformation for an Endpoint for more information on the configuration steps.