vendredi 28 août 2015

Does API Gateway automatically validate input model?

I've created simple API in AWS API gateway with following endpoint:

POST /v1/users

In method execution / method request I've added request model:

enter image description here

This model schema looks like this:

enter image description here

However when I make a request to that endpoint with json body { "foo": "bar" } it does not reject it and my lambda function is executed...

So why there is option to define JSON schema if it is not used to validate requests?




Aucun commentaire:

Enregistrer un commentaire