Skip to content
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

deserialize 'Array[Pet]' type doesn't support in petstore #277

Closed
geekerzp opened this issue Sep 25, 2014 · 1 comment
Closed

deserialize 'Array[Pet]' type doesn't support in petstore #277

geekerzp opened this issue Sep 25, 2014 · 1 comment
Milestone

Comments

@geekerzp
Copy link
Contributor

I have played with the api findPetsWithStatus of python lib, but i got some errors about this line https://github.com/wordnik/swagger-codegen/blob/master/samples/client/petstore/python/PetApi.py#L356.
The i reference the deserialize method in swagger.py found that in this line(https://github.com/wordnik/swagger-codegen/blob/master/samples/client/petstore/python/swagger.py#L148), it will execute eval('Array[Pet].Array[Pet]'), but this thow some errors.
It seems that deserialize couldn't handle array of models.
How can i resolve this problem? Thanks

@fehguy fehguy added this to the v2.1.0-M1 milestone Dec 24, 2014
@fehguy
Copy link
Contributor

fehguy commented Feb 17, 2015

I've confirmed this is fixed in develop 2.0

@fehguy fehguy closed this as completed Feb 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants