API Connect

 View Only

 API Connect - Detailed error for response schema validation

Niyasuddin Shah's profile image
Niyasuddin Shah posted Thu August 07, 2025 06:38 AM
Hi,
In API Connect gateway policy for Open API 2.0 REST API, we validate the responses against an object definition in Open API YAML. 
 
The error from this validation is caught using a global error policy. But whenever there is error in validation, this always returns "Validate: Internal Validation Error" without giving the reason what caused the validation to fail. When we examine the logs in DataPower we get some more details about the error.
 
We need the global policy script to return to the user which element caused the validation to fail so that he can pass this error to the API Provider for investigation.
API Connect Version: 10.0.8