Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS API Gateway Model : Invalid model schema specified

I am getting error while creating Model in aws api gateway, Json is in correct format and still it says validation error. Please anyone? where I went wrong?

Error message "Invalid model specified: Validation Result: warnings : [], errors : [Invalid model schema specified]"

Json Schema i am trying to use is:

{
   "action":"createOrUpdate",
   "Content-Type":"application/json",
   "accept":"application/json",
   "input":[
      {
         "utm_CustomObj":"19UYA31581L000000",
         "leadId":"1071319"
      }
   ]
}

Error screen shot

like image 455
joev Avatar asked Mar 25 '16 22:03

joev


1 Answers

You don't seem to be actually defining a schema for your data. Please refer to the API gateway documentation for some examples of defining a model with JSON schema.

like image 192
Bob Kinney Avatar answered Oct 19 '22 17:10

Bob Kinney