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:
This model schema looks like this:
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