pyopenapi / pyswagger

An OpenAPI (fka Swagger) client & converter in python, which is type-safe, dynamic, spec-compliant.
MIT License
385 stars 89 forks source link

Fix `Bytes` class `to_json` to return a string #121

Closed olipratt closed 7 years ago

olipratt commented 7 years ago

Fixes #120

There was already a test for this, but expecting the to_json method to return bytes, so I just altered it to expect a string, and decoded the output of base64.urlsafe_b64encode.

I ran the tests and they all passed on Python 3.5 - I'll let Travis test on other versions.

mission-liao commented 7 years ago

@olipratt I turned off the auto testing for PR on travis, and just switch it on, would you mind to close this PR and submit another again?

olipratt commented 7 years ago

Sure thing!