-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: unhashable type: 'dict' #125
Comments
@Kyria I'll look into this issue after work (12 hours from now), thanks for reporting |
@Kyria The problem is this line: val = set(val) if obj.uniqueItems else val and in your swagger.json: {
"mail_id": 366066710,
"subject": "blabla",
"from": 961633431,
"timestamp": "2017-05-18T17:39:00Z",
"labels": [
2
],
"recipients": [ // <- you prefer uniqueItem on an Object
{
"recipient_type": "character",
"recipient_id": 1107830848
}
],
"is_read": true
}, pyswagger didn't handle this case well, as you can see, using set to assure uniqueness only work for simple primitives, not for array, object. This can be fixed (in next release). My suggestion is, if the uniqueness is just for descriptive purpose, you can turn it to false to make this part work temporarily. |
As I don't have any rights on the swagger.json description, i'll just wait for that change :) (I'm just a user of this swagger endpoint actually). It's not a blocking problem, since I can use thanks! |
@Kyria this issue is fixed with these consideration:
thanks for reporting issue anyway, I'll provide a release later. |
This issue is fixed should already be fixed in latest build: 0.8.30 |
Hello,
I use pyswagger 0.8.29 and python 2.7.
You have this error unless you specify
raw_body_only=True
in the Response object before you do the request.This is also the swagger UI doc link : https://esi.tech.ccp.is/latest/#!/Mail/get_characters_character_id_mail if you need / want it.
Feel free to ask for any additional information that may help you.
Thanks !
Used code:
Stacktrace
Actual result from the swagger API [truncated because it's too long. If you need the full response, just tell me]
The text was updated successfully, but these errors were encountered: