Any out-of-box solution for validating request json in the api proxy?

Hi,

We defined an API proxy using Open API specification. The request json must have some mandatory fields and also certain restrictions on elements.

However, when we run the API proxy, it does not validate the request submitted and request is sent all the way to Back End API which does the request validation and returns error response.

Two questions:

1. Is there an out-of-box solution available in APIGee to perform the request validation ?

2. If API proxy does not do the validation of request payload based on open API specification provided, then what is the usage of providing open API specification while creating API proxy?

0 2 726
2 REPLIES 2

@Akash Prabhashankar

Thanks for the links. I was looking for out of the box solution. Based on the posts, currently, there is no out of the box solution & we have to write js for validating data ( well formed & validation using open API spec). Posts you provided has useful information.