Open kvnamipara opened 5 years ago
I recently encountered a error: AttributeError: 'list' object has no attribute 'items'
Turns out that one one of the properties in the spec (also 2.0) was marked type: "object"
when it should have been type: "array"
.
So, I would compare your schema against the response data to see if a property is declared as type: "object"
when it's actually a string.
Maybe some simple error handling could be added in a future release of this library to add better error messages when a primitive factory raises exception
After spending a long and hard time on it, you sir saved my life!
With using open APIs spec v2 of GitHub using pyswagger, I am unable to get desired response.
On debugging I found that, Api call is made correctly and correct response has been fetched, but then there is error while parsing the response object to pyswagger response object. Can anyone explain me what and where it is going wrong? Thanks.